Make the "map" link on the traces page translatable.
This commit is contained in:
parent
84041d9cf9
commit
8de0c9dd22
2 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
... <%= time_ago_in_words( trace.timestamp ) %> ago</span>
|
... <%= 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 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')} %>
|
<%= link_to t('trace.trace.edit'), {:controller => 'site', :action => 'edit', :gpx => trace.id }, {:title => t('trace.trace.edit_map')} %>
|
||||||
<% if trace.public? %>
|
<% if trace.public? %>
|
||||||
<span style="color:green"><%= t'trace.trace.public' %></span>
|
<span style="color:green"><%= t'trace.trace.public' %></span>
|
||||||
|
|
|
@ -477,6 +477,7 @@ en:
|
||||||
private: "PRIVATE"
|
private: "PRIVATE"
|
||||||
by: "by"
|
by: "by"
|
||||||
in: "in"
|
in: "in"
|
||||||
|
map: "map"
|
||||||
user:
|
user:
|
||||||
login:
|
login:
|
||||||
heading: "Login"
|
heading: "Login"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue