]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/3962'
authorTom Hughes <tom@compton.nu>
Wed, 8 Mar 2023 17:00:48 +0000 (17:00 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 8 Mar 2023 17:00:48 +0000 (17:00 +0000)
app/views/confirmations/confirm.html.erb
app/views/shared/_markdown_help.html.erb
app/views/site/_potlatch.html.erb
app/views/site/communities.html.erb
app/views/site/fixthemap.html.erb
app/views/users/terms.html.erb
config/locales/en.yml

index 7350f86287494a9e4af12fc15c4bff07f35bbd06..879fb8f337cebf45c1a4f15ff46efdd1d5c422a6 100644 (file)
@@ -27,6 +27,8 @@
     </span>
   </h1>
 
-  <p class='text-muted'><%= t ".reconfirm_html",
-                              :reconfirm => url_for(:action => "confirm_resend") %></p>
+  <p class='text-muted'>
+    <%= t ".resend_html",
+          :reconfirm_link => link_to(t(".click_here"), url_for(:action => "confirm_resend")) %>
+  </p>
 <% end %>
index 5bd8c4955deb47b2af277a304e1dc8189631d151..9097c9d9174c162b55cfddea5f37bc95e2fb6bf7 100644 (file)
@@ -1,4 +1,6 @@
-<h5><%= t ".title_html" %></h5>
+<h5>
+  <%= t ".heading_html", :kramdown_link => link_to(t(".kramdown"), t(".kramdown_url")) %>
+</h5>
 <dl>
   <dt><%= t ".headings" %></dt>
   <dd># <%= t ".heading" %><br>
index 790a3bf5d057497713a449e9eb930ca217ee5459..909a4cb414a707fc22cc744f40109dbb5c81bb13 100644 (file)
@@ -1,5 +1,5 @@
 <div class="container">
   <p><%= t ".removed" %></p>
-  <p><%= t ".desktop_html" %></p>
-  <p><%= t ".id_html", :settings_url => preferences_path %></p>
+  <p><%= t ".desktop_application_html", :download_link => link_to(t(".download"), t(".download_url")) %></p>
+  <p><%= t ".id_editor_html", :change_preferences_link => link_to(t(".change_preferences"), preferences_path) %></p>
 </div>
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 fe6cf22c59b3eb8aae18d5ec8b01ad7ea092a382..ab8684116b4f580bd431243ada702d4ac189c465 100644 (file)
@@ -27,6 +27,9 @@
 </div>
 
 <h2><%= t ".other_concerns.title" %></h2>
-<p><%= t ".other_concerns.explanation_html" %></p>
+<p>
+  <%= t ".other_concerns.concerns_html", :copyright_link => link_to(t(".other_concerns.copyright"), copyright_path),
+                                         :working_group_link => link_to(t(".other_concerns.working_group"), t(".other_concerns.working_group_url")) %>
+</p>
 
 <%= render "any_questions" %>
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 5045542ab336b113037aae02612e90616e774b89..ca1d313c8df7ebc1dbe32f6de6817bb1520c8ea2 100644 (file)
@@ -1627,7 +1627,8 @@ en:
       success: "Confirmed your account, thanks for signing up!"
       already active: "This account has already been confirmed."
       unknown token: "That confirmation code has expired or does not exist."
-      reconfirm_html: "If you need us to resend the confirmation email, <a href=\"%{reconfirm}\">click here</a>."
+      resend_html: "If you need us to resend the confirmation email, %{reconfirm_link}."
+      click_here: click here
     confirm_resend:
       failure: "User %{name} not found."
     confirm_email:
@@ -1803,7 +1804,9 @@ en:
       support: support
   shared:
     markdown_help:
-      title_html: Parsed with <a href="https://kramdown.gettalong.org/quickref.html">kramdown</a>
+      heading_html: Parsed with %{kramdown_link}
+      kramdown_url: https://kramdown.gettalong.org/quickref.html
+      kramdown: kramdown
       headings: Headings
       heading: Heading
       subheading: Subheading
@@ -2084,10 +2087,12 @@ en:
             by dragging. Add your message, then click save, and other mappers will investigate.
       other_concerns:
         title: Other concerns
-        explanation_html: |
+        concerns_html: |
           If you have concerns about how our data is being used or about the contents please consult our
-          <a href='/copyright'>copyright page</a> for more legal information, or contact the appropriate
-          <a href='https://wiki.osmfoundation.org/wiki/Working_Groups'>OSMF working group</a>.
+          %{copyright_link} for more legal information, or contact the appropriate %{working_group_link}.
+        copyright: copyright page
+        working_group: OSMF working group
+        working_group_url: https://wiki.osmfoundation.org/wiki/Working_Groups
     help:
       title: Getting Help
       introduction: |
@@ -2135,8 +2140,11 @@ en:
         description: Browse the wiki for in-depth OpenStreetMap documentation.
     potlatch:
       removed: Your default OpenStreetMap editor is set as Potlatch. Because Adobe Flash Player has been withdrawn, Potlatch is no longer available to use in a web browser.
-      desktop_html: You can still use Potlatch by <a href="https://www.systemed.net/potlatch/">downloading the desktop application for Mac and Windows</a>.
-      id_html: Alternatively, you can set your default editor to iD, which runs in your web browser as Potlatch formerly did. <a href="%{settings_url}">Change your preferences here</a>.
+      desktop_application_html: You can still use Potlatch by %{download_link}.
+      download: downloading the desktop application for Mac and Windows
+      download_url: https://www.systemed.net/potlatch/
+      id_editor_html: Alternatively, you can set your default editor to iD, which runs in your web browser as Potlatch formerly did. %{change_preferences_link}.
+      change_preferences: Change your preferences here
     any_questions:
       title: Any questions?
       paragraph_1_html: |
@@ -2301,11 +2309,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)"
@@ -2570,7 +2579,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"