From: Andy Allan Date: Sun, 31 May 2009 14:25:19 +0000 (+0000) Subject: more trace i18n X-Git-Tag: live~7371^2~19 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c30f141f4b1f36ca4acde325ad360b4df62823b8?ds=inline more trace i18n --- diff --git a/app/views/trace/_trace_form.rhtml b/app/views/trace/_trace_form.rhtml index 299845015..9d9dd146a 100644 --- a/app/views/trace/_trace_form.rhtml +++ b/app/views/trace/_trace_form.rhtml @@ -1,9 +1,9 @@ <% form_for :trace, @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %> - - - - - + + + + +
Upload GPX File<%= f.file_field :gpx_file, :size => 50, :maxlength => 255 %>
Description<%= f.text_field :description, :size => 50, :maxlength => 255 %>
Tags<%= f.text_field :tagstring, :size => 50, :maxlength => 255 %>
Public?<%= f.check_box :public %>
<%= submit_tag 'Upload' %> | Help
<%= t'trace.trace_form.upload_gpx' %><%= f.file_field :gpx_file, :size => 50, :maxlength => 255 %>
<%= t'trace.trace_form.description' %><%= f.text_field :description, :size => 50, :maxlength => 255 %>
<%= t'trace.trace_form.tags' %><%= f.text_field :tagstring, :size => 50, :maxlength => 255 %>
<%= t'trace.trace_form.public' %><%= f.check_box :public %>
<%= submit_tag t('trace.trace_form.upload_button') %> | <%= t'trace.trace_form.help' %>
<% end %> diff --git a/app/views/trace/_trace_header.rhtml b/app/views/trace/_trace_header.rhtml index cab6f7124..5be7269c2 100644 --- a/app/views/trace/_trace_header.rhtml +++ b/app/views/trace/_trace_header.rhtml @@ -7,20 +7,16 @@

<%= rss_link_to :action => 'georss', :display_name => @display_name, :tag => @tag %> <% if @user.nil? or @display_name.nil? or @user.display_name != @display_name %> - | <%= link_to 'See just your traces, or upload a trace', :action => 'mine' %> + | <%= link_to t('trace.trace_header.see_just_your_traces'), :action => 'mine' %> <% end %> <% if @tag or @display_name %> - | <%= link_to 'See all traces', :controller => 'trace', :action => 'list' %> + | <%= link_to t('trace.trace_header.see_all_traces'), :controller => 'trace', :action => 'list' %> <% end %> <% if @tag and @user and @user.display_name == @display_name %> - | <%= link_to 'See all your traces', :controller => 'trace', :action => 'mine' %> + | <%= link_to t('trace.trace_header.see_your_traces'), :controller => 'trace', :action => 'mine' %> <% end %>

<% if @user and @user.traces.count(:conditions => ["inserted=?", false]) > 4 %> -

- You have <%= @user.traces.count(:conditions => ["inserted=?", false]) %> traces - waiting for upload. Please consider waiting for these to finish before - uploading any more, so as not to block the queue for other users. -

+

<%= t'trace.trace_header.traces_waiting', :count => @user.traces.count(:conditions => ["inserted=?", false]) %>

<% end %> diff --git a/app/views/trace/_trace_optionals.rhtml b/app/views/trace/_trace_optionals.rhtml index b5b068fe6..f166a779b 100644 --- a/app/views/trace/_trace_optionals.rhtml +++ b/app/views/trace/_trace_optionals.rhtml @@ -1,6 +1,6 @@ <% content_for "optionals" do %>
- Tags + <%= t'trace.trace_optionals.tags' %>

<% if @all_tags %> diff --git a/app/views/trace/no_such_user.rhtml b/app/views/trace/no_such_user.rhtml index 7820b4847..46ff6c1b0 100644 --- a/app/views/trace/no_such_user.rhtml +++ b/app/views/trace/no_such_user.rhtml @@ -1,2 +1,2 @@

<%= h(@not_found_user) %>

-

Sorry, there is no user with the name <%= @not_found_user -%>. Please check your spelling, or maybe the link you clicked is wrong.

+

<%= t'trace.no_such_user.no_such_user', :name => @not_found_user %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index ee5bb1b76..3c25daa94 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -275,6 +275,22 @@ en: description: "Description:" tags: "Tags:" save_button: "Save Changes" + no_such_user: + no_such_user: "Sorry, there is no user with the name {{name}}. Please check your spelling, or maybe the link you clicked is wrong." + trace_form: + upload_gpx: "Upload GPX File" + description: "Description" + tags: "Tags" + public: "Public?" + upload_button: "Upload" + help: "Help" + trace_header: + see_just_your_traces: "See just your traces, or upload a trace" + see_all_traces: "See all traces" + see_your_traces: "See all your traces" + traces_waiting: "You have {{count}} traces waiting for upload. Please consider waiting for these to finish before uploading any more, so as not to block the queue for other users." + trace_optionals: + tags: "Tags" view: pending: "PENDING" filename: "Filename:"