Skip to content

Commit

Permalink
Move history_title_html locale string to old_elements
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKhorev committed Jan 4, 2025
1 parent c992d51 commit dda0fb6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/views/old_elements/index.html.erb
Original file line number Diff line number Diff line change
@@ -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 %>

Expand Down
11 changes: 8 additions & 3 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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."
Expand Down

0 comments on commit dda0fb6

Please sign in to comment.