Avoid lego translations for coordinates

Use the i18n system for joining coordinate values together, while
avoiding making any changes or standardisation involving the exact
symbol used in each situation.

Refs #2732
This commit is contained in:
Andy Allan 2020-08-19 16:43:16 +02:00
parent afd051116d
commit 613b748c55
5 changed files with 21 additions and 4 deletions

View file

@ -24,7 +24,10 @@
<% if @type == "node" and common_details.visible? %>
<div class="details geo">
<%= t "browse.location" %>
<%= link_to(tag.span(number_with_delimiter(common_details.lat), :class => "latitude") + ", " + tag.span(number_with_delimiter(common_details.lon), :class => "longitude"), root_path(:anchor => "map=18/#{common_details.lat}/#{common_details.lon}")) %>
<%= link_to(t(".coordinates_html",
:latitude => tag.span(number_with_delimiter(common_details.lat), :class => "latitude"),
:longitude => tag.span(number_with_delimiter(common_details.lon), :class => "longitude")),
root_path(:anchor => "map=18/#{common_details.lat}/#{common_details.lon}")) %>
</div>
<% end %>

View file

@ -19,7 +19,10 @@
<% end %>
<li>
<%= t "browse.location" %>
<%= link_to(tag.span(number_with_delimiter(@note.lat), :class => "latitude") + ", " + tag.span(number_with_delimiter(@note.lon), :class => "longitude"), root_path(:anchor => "map=18/#{@note.lat}/#{@note.lon}")) %>
<%= link_to(t(".coordinates_html",
:latitude => tag.span(number_with_delimiter(@note.lat), :class => "latitude"),
:longitude => tag.span(number_with_delimiter(@note.lon), :class => "longitude")),
root_path(:anchor => "map=18/#{@note.lat}/#{@note.lon}")) %>
</li>
</ul>
</div>