From: Anton Khorev Date: Mon, 2 Sep 2024 22:38:17 +0000 (+0300) Subject: Move note paging locale strings to notes scope X-Git-Tag: live~280^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/2f5272639ee3bb2946c3b970899971a50fd66bbc Move note paging locale strings to notes scope --- diff --git a/app/views/notes/_notes_paging_nav.html.erb b/app/views/notes/_notes_paging_nav.html.erb index 207f88779..9e52b721e 100644 --- a/app/views/notes/_notes_paging_nav.html.erb +++ b/app/views/notes/_notes_paging_nav.html.erb @@ -1,17 +1,17 @@

<% if @page > 1 %> -<%= link_to t("changesets.changeset_paging_nav.previous"), @params.merge(:page => @page - 1) %> +<%= link_to t(".previous"), @params.merge(:page => @page - 1) %> <% else %> -<%= t("changesets.changeset_paging_nav.previous") %> +<%= t(".previous") %> <% end %> -| <%= t("changesets.changeset_paging_nav.showing_page", :page => @page) %> | +| <%= t(".showing_page", :page => @page) %> | <% if @notes.size < @page_size %> -<%= t("changesets.changeset_paging_nav.next") %> +<%= t(".next") %> <% else %> -<%= link_to t("changesets.changeset_paging_nav.next"), @params.merge(:page => @page + 1) %> +<%= link_to t(".next"), @params.merge(:page => @page + 1) %> <% end %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index a3bb71b12..d9bb56fbf 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -427,10 +427,6 @@ en: timeout: sorry: "Sorry, the list of changeset comments you requested took too long to retrieve." changesets: - changeset_paging_nav: - showing_page: "Page %{page}" - next: "Next »" - previous: "« Previous" changeset: anonymous: "Anonymous" no_edits: "(no edits)" @@ -3029,6 +3025,10 @@ en: anonymous_warning_sign_up: "sign up" advice: "Your note is public and may be used to update the map, so don't enter personal information, or information from copyrighted maps or directory listings." add: Add Note + notes_paging_nav: + showing_page: "Page %{page}" + next: "Next »" + previous: "« Previous" javascripts: close: Close share: