From: Anton Khorev Date: Fri, 7 Mar 2025 14:15:30 +0000 (+0300) Subject: Move a couple of i18n strings to dashboards/contact X-Git-Tag: live~38^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/149137163c0ef5ca6e86606dfbd8ba3335ae0277?ds=sidebyside;hp=--cc Move a couple of i18n strings to dashboards/contact This is the only place where these string are used. --- 149137163c0ef5ca6e86606dfbd8ba3335ae0277 diff --git a/app/views/dashboards/_contact.html.erb b/app/views/dashboards/_contact.html.erb index 021f1a335..0dda0b354 100644 --- a/app/views/dashboards/_contact.html.erb +++ b/app/views/dashboards/_contact.html.erb @@ -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"] %> - <%= link_to comment, changeset, :title => t("changesets.changeset.view_changeset_details") %> + <%= link_to comment, changeset, :title => t(".view_changeset_details") %> <% else %> - <%= t "changesets.changeset.no_edits" %> + <%= t ".no_edits" %> <% end %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 093827ebd..fe1fdbe52 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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"