]> git.openstreetmap.org Git - rails.git/commitdiff
Move history_title_html locale string to old_elements
authorAnton Khorev <tony29@yandex.ru>
Sat, 4 Jan 2025 14:35:05 +0000 (17:35 +0300)
committerAnton Khorev <tony29@yandex.ru>
Sat, 4 Jan 2025 14:35:05 +0000 (17:35 +0300)
app/views/old_elements/index.html.erb
config/locales/en.yml

index 1595df0216d129772d953d07c5a5923d85f32fa8..d4ecbfa60480c618041bb7902bd601abd91ec644 100644 (file)
@@ -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 %>
 
 
 <%= render :partial => "browse/#{@type}", :collection => @feature.send(:"old_#{@type}s").reverse %>
 
index 3fabe13c1ff39502935a9dbe39e7898bd40ded3d..e1dd3c303281af491ee0191d36e03c9b48e50201 100644 (file)
@@ -330,10 +330,8 @@ en:
       coordinates_html: "%{latitude}, %{longitude}"
     node:
       title_html: "Node: %{name}"
       coordinates_html: "%{latitude}, %{longitude}"
     node:
       title_html: "Node: %{name}"
-      history_title_html: "Node History: %{name}"
     way:
       title_html: "Way: %{name}"
     way:
       title_html: "Way: %{name}"
-      history_title_html: "Way History: %{name}"
       nodes: "Nodes"
       nodes_count:
         one: "%{count} node"
       nodes: "Nodes"
       nodes_count:
         one: "%{count} node"
@@ -343,7 +341,6 @@ en:
         other: "part of ways %{related_ways}"
     relation:
       title_html: "Relation: %{name}"
         other: "part of ways %{related_ways}"
     relation:
       title_html: "Relation: %{name}"
-      history_title_html: "Relation History: %{name}"
       members: "Members"
       members_count:
         one: "%{count} member"
       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"
       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."
   nodes:
     timeout:
       sorry: "Sorry, the data for the node with the id %{id} took too long to retrieve."