Make the "map" link on the traces page translatable.

This commit is contained in:
Tom Hughes 2009-06-01 23:07:24 +00:00
parent 84041d9cf9
commit 8de0c9dd22
2 changed files with 2 additions and 1 deletions

View file

@ -14,7 +14,7 @@
<% end %>
... <%= time_ago_in_words( trace.timestamp ) %> ago</span>
<%= link_to t('trace.trace.more'), {:controller => 'trace', :action => 'view', :display_name => trace.user.display_name, :id => trace.id}, {:title => t('trace.trace.trace_details')} %> /
<%= link_to_if trace.inserted?, 'map', {:controller => 'site', :action => 'index', :lat => trace.latitude, :lon => trace.longitude, :zoom => 14}, {:title => t('trace.trace.view_map')} %> /
<%= link_to_if trace.inserted?, t('trace.trace.map'), {:controller => 'site', :action => 'index', :lat => trace.latitude, :lon => trace.longitude, :zoom => 14}, {:title => t('trace.trace.view_map')} %> /
<%= link_to t('trace.trace.edit'), {:controller => 'site', :action => 'edit', :gpx => trace.id }, {:title => t('trace.trace.edit_map')} %>
<% if trace.public? %>
<span style="color:green"><%= t'trace.trace.public' %></span>

View file

@ -477,6 +477,7 @@ en:
private: "PRIVATE"
by: "by"
in: "in"
map: "map"
user:
login:
heading: "Login"