From 1b1b1b2f5729eb6e4ec990cae2d3ea834ea641d9 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Sun, 31 May 2009 13:25:56 +0000 Subject: [PATCH 1/1] Committing first of trace view i18n untested --- app/views/trace/create.rhtml | 2 +- app/views/trace/edit.rhtml | 14 +++++++------- config/locales/en.yml | 13 +++++++++++++ 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/app/views/trace/create.rhtml b/app/views/trace/create.rhtml index 94f403951..59415dcd5 100644 --- a/app/views/trace/create.rhtml +++ b/app/views/trace/create.rhtml @@ -1,4 +1,4 @@ -

Upload GPS Trace

+

<%= t'trace.create.upload_trace' %>Upload GPS Trace

<%= error_messages_for 'trace' %> diff --git a/app/views/trace/edit.rhtml b/app/views/trace/edit.rhtml index d7c04182d..397ee34a4 100644 --- a/app/views/trace/edit.rhtml +++ b/app/views/trace/edit.rhtml @@ -6,28 +6,28 @@ - + - + <% if @trace.inserted? %> - + - - + + <% end %> - + - + diff --git a/config/locales/en.yml b/config/locales/en.yml index c2fdf8832..6b071b58b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -261,6 +261,19 @@ en: search_help: "examples: 'Alkmaar', 'Regent Street, Cambridge', 'CB2 5AQ', or 'post offices near Lünen' more examples..." key: map_key: "Map key" + trace: + create: + upload: "Upload GPS Trace" + edit: + filename: "Filename:" + uploaded_at: "Uploaded at:" + points: "Points:" + start_coord: "Start coordinate:" + edit: "edit" + owner: "Owner:" + description: "Description:" + tags: "Tags:" + save_button: "Save Changes" user: login: heading: Login -- 2.43.2
Filename:<%= t'trace.edit.filename' %> <%= @trace.name %> (<%= link_to 'download', :controller => 'trace', :action => 'data', :id => @trace.id %>)
Uploaded at:<%= t'trace.edit.uploaded_at' %> <%= @trace.timestamp %>
Points:<%= t'trace.edit.points' %> <%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %>
Start coordinate:
<%= @trace.latitude %>; <%= @trace.longitude %>
(<%=link_to 'map', :controller => 'site', :action => 'index', :lat => @trace.latitude, :lon => @trace.longitude, :zoom => 14 %> / <%=link_to 'edit', :controller => 'site', :action => 'edit', :lat => @trace.latitude, :lon => @trace.longitude, :gpx=> @trace.id, :zoom => 14 %>)
<%= t'trace.edit.start_coord' %>Start coordinate:
<%= @trace.latitude %>; <%= @trace.longitude %>
(<%=link_to 'map', :controller => 'site', :action => 'index', :lat => @trace.latitude, :lon => @trace.longitude, :zoom => 14 %> / <%=link_to t('trace.edit.edit'), :controller => 'site', :action => 'edit', :lat => @trace.latitude, :lon => @trace.longitude, :gpx=> @trace.id, :zoom => 14 %>)
Owner:<%= t'trace.edit.owner' %> <%= link_to h(@trace.user.display_name), {:controller => 'user', :action => 'view', :display_name => @trace.user.display_name} %>
Description:<%= t'trace.edit.description' %>Description: <%= f.text_field :description %>