]> git.openstreetmap.org Git - rails.git/commitdiff
Move a couple of i18n strings to dashboards/contact
authorAnton Khorev <tony29@yandex.ru>
Fri, 7 Mar 2025 14:15:30 +0000 (17:15 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 7 Mar 2025 14:16:28 +0000 (17:16 +0300)
This is the only place where these string are used.

app/views/dashboards/_contact.html.erb
config/locales/en.yml

index 021f1a33585e7e5dac88e25bdfe894eb211c310b..0dda0b35481f98d146f563974105a6120224c86e 100644 (file)
@@ -25,9 +25,9 @@
       <% if changeset %>
         <%= t(".latest_edit_html", :ago => friendly_date_ago(changeset.created_at)) %>
         <% comment = changeset.tags["comment"].to_s == "" ? t("browse.no_comment") : changeset.tags["comment"] %>
-        <q><%= link_to comment, changeset, :title => t("changesets.changeset.view_changeset_details") %></q>
+        <q><%= link_to comment, changeset, :title => t(".view_changeset_details") %></q>
       <% else %>
-       <%= t "changesets.changeset.no_edits" %>
+       <%= t ".no_edits" %>
       <% end %>
     </p>
 
index 093827ebdc75676b2306cb941bdf908a7e00ebd9..fe1fdbe5214177b3b72fa35e84d5092a813269e9 100644 (file)
@@ -476,8 +476,6 @@ en:
         sorry: "Sorry, the list of changeset comments you requested took too long to retrieve."
   changesets:
     changeset:
-      no_edits: "(no edits)"
-      view_changeset_details: "View changeset details"
       comments:
         one: "%{count} comment"
         other: "%{count} comments"
@@ -553,6 +551,8 @@ en:
       km away: "%{count}km away"
       m away: "%{count}m away"
       latest_edit_html: "Latest edit (%{ago}):"
+      no_edits: "(no edits)"
+      view_changeset_details: "View changeset details"
     popup:
       your location: "Your location"
       nearby mapper: "Nearby mapper"