From dda0fb6597eab2f330f815e439acc611030a836d Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Sat, 4 Jan 2025 17:35:05 +0300 Subject: [PATCH] Move history_title_html locale string to old_elements --- app/views/old_elements/index.html.erb | 4 ++-- config/locales/en.yml | 11 ++++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/views/old_elements/index.html.erb b/app/views/old_elements/index.html.erb index 1595df021..d4ecbfa60 100644 --- a/app/views/old_elements/index.html.erb +++ b/app/views/old_elements/index.html.erb @@ -1,6 +1,6 @@ -<% set_title(t("browse.#{@type}.history_title_html", :name => printable_element_name(@feature))) %> +<% set_title(t(".#{@type}.title_html", :name => printable_element_name(@feature))) %> -<%= render "sidebar_header", :title => t("browse.#{@type}.history_title_html", :name => printable_element_name(@feature)) %> +<%= render "sidebar_header", :title => t(".#{@type}.title_html", :name => printable_element_name(@feature)) %> <%= render :partial => "browse/#{@type}", :collection => @feature.send(:"old_#{@type}s").reverse %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 3fabe13c1..e1dd3c303 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -330,10 +330,8 @@ en: coordinates_html: "%{latitude}, %{longitude}" node: title_html: "Node: %{name}" - history_title_html: "Node History: %{name}" way: title_html: "Way: %{name}" - history_title_html: "Way History: %{name}" nodes: "Nodes" nodes_count: one: "%{count} node" @@ -343,7 +341,6 @@ en: other: "part of ways %{related_ways}" relation: title_html: "Relation: %{name}" - history_title_html: "Relation History: %{name}" members: "Members" members_count: one: "%{count} member" @@ -402,6 +399,14 @@ en: introduction: "Click on the map to find nearby features." nearby: "Nearby features" enclosing: "Enclosing features" + old_elements: + index: + node: + title_html: "Node History: %{name}" + way: + title_html: "Way History: %{name}" + relation: + title_html: "Relation History: %{name}" nodes: timeout: sorry: "Sorry, the data for the node with the id %{id} took too long to retrieve." -- 2.39.5