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:
parent
afd051116d
commit
613b748c55
5 changed files with 21 additions and 4 deletions
|
@ -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 %>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue