From: Anton Khorev Date: Thu, 29 Feb 2024 09:51:34 +0000 (+0300) Subject: Move changeset created/closed time ago strings to changesets locale X-Git-Tag: live~748^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/60dd5ce6e6e4e3222920fa9d6804c25deae3529c?ds=inline;hp=-c Move changeset created/closed time ago strings to changesets locale --- 60dd5ce6e6e4e3222920fa9d6804c25deae3529c diff --git a/app/helpers/changesets_helper.rb b/app/helpers/changesets_helper.rb index f580ba549..dbee08c50 100644 --- a/app/helpers/changesets_helper.rb +++ b/app/helpers/changesets_helper.rb @@ -23,10 +23,10 @@ module ChangesetsHelper end if params.key?(:display_name) - t "browse.#{action}_ago_html", :time_ago => tag.time(time, :title => title, :datetime => datetime) + t "changesets.show.#{action}_ago_html", :time_ago => tag.time(time, :title => title, :datetime => datetime) else - t "browse.#{action}_ago_by_html", :time_ago => tag.time(time, :title => title, :datetime => datetime), - :user => changeset_user_link(changeset) + t "changesets.show.#{action}_ago_by_html", :time_ago => tag.time(time, :title => title, :datetime => datetime), + :user => changeset_user_link(changeset) end end diff --git a/config/locales/en.yml b/config/locales/en.yml index eb0f034a6..6db6e77b4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -308,10 +308,6 @@ en: destroy: success: "Account Deleted." browse: - created_ago_html: "Created %{time_ago}" - closed_ago_html: "Closed %{time_ago}" - created_ago_by_html: "Created %{time_ago} by %{user}" - closed_ago_by_html: "Closed %{time_ago} by %{user}" deleted_ago_by_html: "Deleted %{time_ago} by %{user}" edited_ago_by_html: "Edited %{time_ago} by %{user}" version: "Version" @@ -466,6 +462,10 @@ en: title: "Changeset: %{id}" created: "Created: %{when}" closed: "Closed: %{when}" + created_ago_html: "Created %{time_ago}" + closed_ago_html: "Closed %{time_ago}" + created_ago_by_html: "Created %{time_ago} by %{user}" + closed_ago_by_html: "Closed %{time_ago} by %{user}" discussion: Discussion join_discussion: "Log in to join the discussion" still_open: "Changeset still open - discussion will open once the changeset is closed."