]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/3982'
authorTom Hughes <tom@compton.nu>
Wed, 22 Mar 2023 11:00:09 +0000 (11:00 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 22 Mar 2023 11:00:09 +0000 (11:00 +0000)
app/views/site/copyright.html.erb
app/views/user_mailer/gpx_success.html.erb
config/locales/en.yml

index 581af7d6d710d6b4d73a10bdf1bdba5e5a79af36..e94fad402b0df97309ba96a733a0b7770d6388c6 100644 (file)
@@ -2,34 +2,30 @@
   <% if @locale == "en" %>
     <!-- Maybe ease foreigners back to their native page -->
     <% if t(".legal_babble", :locale => I18n.locale) != t(".legal_babble", :locale => :en) %>
-      <%= tag.div :lang => @locale, :dir => t("html.dir", :locale => @locale) do %>
-        <h1><%= t ".native.title" %></h1>
-        <p>
-          <%= t ".native.html",
-                :native_link => link_to(t(".native.native_link"),
-                                        :controller => "site",
-                                        :action => "copyright",
-                                        :copyright_locale => nil),
-                :mapping_link => link_to(t(".native.mapping_link"),
-                                         :controller => "site",
-                                         :action => "index") %>
-        </p>
-      <% end %>
+      <h1><%= t ".native.title" %></h1>
+      <p>
+        <%= t ".native.html",
+              :native_link => link_to(t(".native.native_link"),
+                                      :controller => "site",
+                                      :action => "copyright",
+                                      :copyright_locale => nil),
+              :mapping_link => link_to(t(".native.mapping_link"),
+                                       :controller => "site",
+                                       :action => "index") %>
+      </p>
       <hr />
     <% end %>
   <% else %>
     <!-- Maybe note that this page has been translated -->
     <% if t(".legal_babble", :locale => @locale) != t(".legal_babble", :locale => :en) %>
-      <%= tag.div :lang => "en", :dir => t("html.dir", :locale => "en") do %>
-        <h1><%= t ".foreign.title" %></h1>
-        <p>
-          <%= t ".foreign.html",
-                :english_original_link => link_to(t(".foreign.english_link"),
-                                                  :controller => "site",
-                                                  :action => "copyright",
-                                                  :copyright_locale => "en") %>
-        </p>
-      <% end %>
+      <h1><%= t ".foreign.title" %></h1>
+      <p>
+        <%= t ".foreign.html",
+              :english_original_link => link_to(t(".foreign.english_link"),
+                                                :controller => "site",
+                                                :action => "copyright",
+                                                :copyright_locale => "en") %>
+      </p>
       <hr />
     <% end %>
   <% end %>
index 73afa4295fe9b314051fab891505fb7288c7f678..ad60408bd8c2d68663a7d39ce37e0bc1ab58d2d1 100644 (file)
@@ -2,6 +2,5 @@
 
 <p>
   <%= render :partial => "gpx_description" %>
-  <%= t(".loaded_successfully",
-        :trace_points => @trace_points, :possible_points => @possible_points, :count => @possible_points) %>
+  <%= t(".loaded", :trace_points => @trace_points, :count => @possible_points) %>
 </p>
index 1c70e73b482d44128ebe5c86f54fa6afc9f88f0b..302cebd351872b5dd167254f64762784228d2cba 100644 (file)
@@ -159,41 +159,41 @@ en:
   datetime:
     distance_in_words_ago:
       about_x_hours:
-        one: about 1 hour ago
+        one: about %{count} hour ago
         other: about %{count} hours ago
       about_x_months:
-        one: about 1 month ago
+        one: about %{count} month ago
         other: about %{count} months ago
       about_x_years:
-        one: about 1 year ago
+        one: about %{count} year ago
         other: about %{count} years ago
       almost_x_years:
-        one: almost 1 year ago
+        one: almost %{count} year ago
         other: almost %{count} years ago
       half_a_minute: half a minute ago
       less_than_x_seconds:
-        one: less than 1 second ago
+        one: less than %{count} second ago
         other: less than %{count} seconds ago
       less_than_x_minutes:
-        one: less than a minute ago
+        one: less than %{count} minute ago
         other: less than %{count} minutes ago
       over_x_years:
-        one: over 1 year ago
+        one: over %{count} year ago
         other: over %{count} years ago
       x_seconds:
-        one: 1 second ago
+        one: "%{count} second ago"
         other: "%{count} seconds ago"
       x_minutes:
-        one: 1 minute ago
+        one: "%{count} minute ago"
         other: "%{count} minutes ago"
       x_days:
-        one: 1 day ago
+        one: "%{count} day ago"
         other: "%{count} days ago"
       x_months:
-        one: 1 month ago
+        one: "%{count} month ago"
         other: "%{count} months ago"
       x_years:
-        one: 1 year ago
+        one: "%{count} year ago"
         other: "%{count} years ago"
   printable_name:
     with_id: "%{id}"
@@ -312,10 +312,10 @@ en:
     no_comment: "(no comment)"
     part_of: "Part of"
     part_of_relations:
-      one: 1 relation
+      one: "%{count} relation"
       other: "%{count} relations"
     part_of_ways:
-      one: 1 way
+      one: "%{count} way"
       other: "%{count} ways"
     download_xml: "Download XML"
     view_history: "View History"
@@ -360,7 +360,7 @@ en:
       history_title_html: "Relation History: %{name}"
       members: "Members"
       members_count:
-        one: 1 member
+        one: "%{count} member"
         other: "%{count} members"
     relation_member:
       entry_html: "%{type} %{name}"
@@ -1391,7 +1391,7 @@ en:
       last_updated_time_user_html: "<abbr title='%{title}'>%{time}</abbr> by %{user}"
       link_to_reports: View Reports
       reports_count:
-        one: "1 Report"
+        one: "%{count} Report"
         other: "%{count} Reports"
       reported_item: Reported Item
       states:
@@ -1402,7 +1402,7 @@ en:
       title: "%{status} Issue #%{issue_id}"
       reports:
         zero: No reports
-        one: 1 report
+        one: "%{count} report"
         other: "%{count} reports"
       report_created_at: "First reported at %{datetime}"
       last_resolved_at: "Last resolved at %{datetime}"
@@ -1552,9 +1552,9 @@ en:
       subject: "[OpenStreetMap] GPX Import failure"
     gpx_success:
       hi: "Hi %{to_user},"
-      loaded_successfully:
-        one: loaded successfully with %{trace_points} out of a possible 1 point.
-        other: loaded successfully with %{trace_points} out of a possible %{possible_points} points.
+      loaded:
+        one: "loaded successfully with %{trace_points} out of a possible %{count} point."
+        other: "loaded successfully with %{trace_points} out of a possible %{count} points."
       subject: "[OpenStreetMap] GPX Import success"
     signup_confirm:
       subject: "[OpenStreetMap] Welcome to OpenStreetMap"
@@ -2368,7 +2368,7 @@ en:
     trace:
       pending: "PENDING"
       count_points:
-        one: "1 point"
+        one: "%{count} point"
         other: "%{count} points"
       more: "more"
       trace_details: "View Trace Details"
@@ -2746,19 +2746,19 @@ en:
       time_past_html: "Ended %{time}."
       block_duration:
         hours:
-          one: "1 hour"
+          one: "%{count} hour"
           other: "%{count} hours"
         days:
-          one: "1 day"
+          one: "%{count} day"
           other: "%{count} days"
         weeks:
-          one: "1 week"
+          one: "%{count} week"
           other: "%{count} weeks"
         months:
-          one: "1 month"
+          one: "%{count} month"
           other: "%{count} months"
         years:
-          one: "1 year"
+          one: "%{count} year"
           other: "%{count} years"
     blocks_on:
       title: "Blocks on %{name}"
@@ -2874,10 +2874,10 @@ en:
       locate:
         title: Show My Location
         metersPopup:
-          one: You are within one meter of this point
+          one: You are within %{count} meter of this point
           other: You are within %{count} meters of this point
         feetPopup:
-          one: You are within one foot of this point
+          one: You are within %{count} foot of this point
           other: You are within %{count} feet of this point
       base:
         standard: Standard