From e6395508c41d8eebd0dabe897b7043686250b0d5 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Sat, 25 Feb 2023 12:15:36 +0100 Subject: [PATCH 1/1] Refactor communities page to avoid html in translations --- app/views/site/communities.html.erb | 3 ++- config/locales/en.yml | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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)" -- 2.39.5