From 149137163c0ef5ca6e86606dfbd8ba3335ae0277 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 7 Mar 2025 17:15:30 +0300 Subject: [PATCH] Move a couple of i18n strings to dashboards/contact This is the only place where these string are used. --- app/views/dashboards/_contact.html.erb | 4 ++-- config/locales/en.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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" -- 2.39.5