<% 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 %>
<% 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>
<%= t ".location" %>
<a href="<%= url_for :controller => "site", :action => "index", :anchor => "map=14/#{location.latitude}/#{location.longitude}" %>">
-<abbr class="geo" title="<%= number_with_precision(location.latitude, :precision => 4) %>; <%= number_with_precision(location.longitude, :precision => 4) %>">
+<abbr class="geo" title="<%= t ".coordinates", :latitude => number_with_precision(location.latitude, :precision => 4), :longitude => number_with_precision(location.longitude, :precision => 4) %>">
<%= describe_location location.latitude, location.longitude, 14, location.language_code %>
</abbr>
</a>
<td><%= number_with_delimiter(@trace.size) %></td></tr>
<tr>
<td><%= t ".start_coordinates" %></td>
- <td><div class="d-inline"><span class="latitude"><%= @trace.latitude %></span>; <span class="longitude"><%= @trace.longitude %></span></div> (<%= link_to t(".map"), :controller => "site", :action => "index", :mlat => @trace.latitude, :mlon => @trace.longitude, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%= link_to t(".edit"), :controller => "site", :action => "edit", :gpx => @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>)</td>
+ <td>
+ <div class="d-inline">
+ <%= t ".coordinates_html",
+ :latitude => tag.span(number_with_delimiter(@trace.latitude), :class => "latitude"),
+ :longitude => tag.span(number_with_delimiter(@trace.longitude), :class => "longitude") %>
+ </div>
+ (<%= link_to t(".map"), :controller => "site", :action => "index", :mlat => @trace.latitude, :mlon => @trace.longitude, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%= link_to t(".edit"), :controller => "site", :action => "edit", :gpx => @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>)</td>
</tr>
<% end %>
<tr>
view_history: "View History"
view_details: "View Details"
location: "Location:"
+ common_details:
+ coordinates_html: "%{latitude}, %{longitude}"
changeset:
title: "Changeset: %{id}"
belongs_to: "Author"
reopened_by_anonymous: "Reactivated by anonymous <abbr title='%{exact_time}'>%{when}</abbr>"
hidden_by: "Hidden by %{user} <abbr title='%{exact_time}'>%{when}</abbr>"
report: Report this note
+ coordinates_html: "%{latitude}, %{longitude}"
query:
title: "Query Features"
introduction: "Click on the map to find nearby features."
location: "Location:"
view: "View"
edit: "Edit"
+ coordinates: "%{latitude}; %{longitude}"
feed:
user:
title: "OpenStreetMap diary entries for %{user}"
uploaded: "Uploaded:"
points: "Points:"
start_coordinates: "Start coordinate:"
+ coordinates_html: "%{latitude}; %{longitude}"
map: "map"
edit: "edit"
owner: "Owner:"