]> git.openstreetmap.org Git - rails.git/commitdiff
Remove html from translations for terms page
authorAndy Allan <git@gravitystorm.co.uk>
Sat, 25 Feb 2023 17:07:09 +0000 (18:07 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 8 Mar 2023 16:09:27 +0000 (16:09 +0000)
app/views/users/terms.html.erb
config/locales/en.yml

index f161667029dbad3b7cd8d8602d8aa518919020b1..e2ece8f1a9b3049f681e91d4175456af5e988de0 100644 (file)
 
   <div>
     <p id="contributorGuidance" class="text-muted">
-      <%= 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") %>
     </p>
   </div>
   <div class="mb-3">
index 79be07cb95c214cade2a2847410d9b76945634e1..f1ce573f0d47aecf1413cfa7db26f495a911807f 100644 (file)
@@ -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 <a href="%{summary}">human readable summary</a> and some <a href="%{translations}">informal translations</a>'
+      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"