From 235618b9c0071befba1aeeb3b8904190ae74f5a5 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Sat, 25 Feb 2023 18:07:09 +0100 Subject: [PATCH] Remove html from translations for terms page --- app/views/users/terms.html.erb | 8 +++++--- config/locales/en.yml | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/views/users/terms.html.erb b/app/views/users/terms.html.erb index f16166702..e2ece8f1a 100644 --- a/app/views/users/terms.html.erb +++ b/app/views/users/terms.html.erb @@ -36,9 +36,11 @@

- <%= t ".guidance_html", - :summary => "https://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary", - :translations => "https://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations" %> + <%= t ".guidance_info_html", + :readable_summary_link => link_to(t(".readable_summary"), + "https://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary"), + :informal_translations_link => link_to(t(".informal_translations"), + "https://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations") %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 79be07cb9..f1ce573f0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2602,7 +2602,9 @@ en: consider_pd: "In addition to the above, I consider my contributions to be in the Public Domain" consider_pd_why: "what's this?" consider_pd_why_url: https://wiki.osmfoundation.org/wiki/Licence_and_Legal_FAQ/Why_would_I_want_my_contributions_to_be_public_domain - guidance_html: 'Information to help understand these terms: a human readable summary and some informal translations' + guidance_info_html: "Information to help understand these terms: a %{readable_summary_link} and some %{informal_translations_link}" + readable_summary: human readable summary + informal_translations: informal translations continue: Continue declined: "https://wiki.openstreetmap.org/wiki/Contributor_Terms_Declined" decline: "Decline" -- 2.39.5