]> git.openstreetmap.org Git - rails.git/commitdiff
Refactor communities page to avoid html in translations
authorAndy Allan <git@gravitystorm.co.uk>
Sat, 25 Feb 2023 11:15:36 +0000 (12:15 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 8 Mar 2023 16:09:27 +0000 (16:09 +0000)
app/views/site/communities.html.erb
config/locales/en.yml

index c2140668379ba951d202a6051c120e1476fcab9e..21b5c235c541d2e204999eab7c2bdbb982b06a5e 100644 (file)
@@ -20,4 +20,5 @@
 </ul>
 
 <h2><%= t ".other_groups.title" %></h2>
-<p><%= t ".other_groups.about_html" %></p>
+<p><%= t ".other_groups.other_groups_html", :communities_wiki_link => link_to(t(".other_groups.communities_wiki"),
+                                                                              t(".other_groups.communities_wiki_url")) %>
index 0a64eaccdf3c4eecc388fb70adf803a800b3d4cc..f5ab514d1e4178fbd4e01a431f3946db2e0b0aa5 100644 (file)
@@ -2327,11 +2327,12 @@ en:
           The following communities are formally established as Local Chapters:
       other_groups:
         title: Other Groups
-        about_html: |
+        other_groups_html: |
           There is no need to formally establish a group to the same extent as the Local Chapters.
           Indeed many groups exist very sucessfully as an informal gathering of people or as a
-          community group. Anyone can set up or join these. Read more on the
-          <a href="https://wiki.openstreetmap.org/wiki/User_group">Communities wiki page</a>.
+          community group. Anyone can set up or join these. Read more on the %{communities_wiki_link}.
+        communities_wiki: Communities wiki page
+        communities_wiki_url: https://wiki.openstreetmap.org/wiki/User_group
   traces:
     visibility:
       private: "Private (only shared as anonymous, unordered points)"