From: Andy Allan Date: Sat, 25 Feb 2023 11:15:36 +0000 (+0100) Subject: Refactor communities page to avoid html in translations X-Git-Tag: live~1330^2~4 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/e6395508c41d8eebd0dabe897b7043686250b0d5 Refactor communities page to avoid html in translations --- diff --git a/app/views/site/communities.html.erb b/app/views/site/communities.html.erb index c21406683..21b5c235c 100644 --- a/app/views/site/communities.html.erb +++ b/app/views/site/communities.html.erb @@ -20,4 +20,5 @@

<%= t ".other_groups.title" %>

-

<%= t ".other_groups.about_html" %>

+

<%= t ".other_groups.other_groups_html", :communities_wiki_link => link_to(t(".other_groups.communities_wiki"), + t(".other_groups.communities_wiki_url")) %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 0a64eaccd..f5ab514d1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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 - Communities wiki page. + 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)"