From: Andy Allan Date: Sat, 30 May 2009 15:44:39 +0000 (+0000) Subject: more databrowser i18n X-Git-Tag: live~7883^2~45 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c48263e15c7d6a4547863b533ff863d5146917e8 more databrowser i18n --- diff --git a/app/views/browse/_node_details.rhtml b/app/views/browse/_node_details.rhtml index 492aa06db..55b9fe288 100644 --- a/app/views/browse/_node_details.rhtml +++ b/app/views/browse/_node_details.rhtml @@ -4,7 +4,7 @@ <% unless node_details.ways.empty? and node_details.containing_relation_members.empty? %> - Part of: + <%= t 'browse.node_details.part_of' %> <% node_details.ways.each do |way| %> diff --git a/app/views/browse/_paging_nav.rhtml b/app/views/browse/_paging_nav.rhtml index fcfbb05dc..30e23b7dd 100644 --- a/app/views/browse/_paging_nav.rhtml +++ b/app/views/browse/_paging_nav.rhtml @@ -1,12 +1,12 @@
<% current_page = pages.current_page %> -Showing page +<%= t'browse.paging_nav.showing_page' %> <%= current_page.number %> (<%= current_page.first_item %><% if (current_page.first_item < current_page.last_item) # if more than 1 trace on page %>-<%= current_page.last_item %><% end %> -of <%= pages.item_count %>) +<%= t'browse.paging_nav.of'%> <%= pages.item_count %>) <% if pages.page_count > 1 %> | <%= pagination_links_each(pages, {}) { |n| link_to_page(n, page_param) } %> diff --git a/app/views/browse/node.rhtml b/app/views/browse/node.rhtml index f798526a8..035598e55 100644 --- a/app/views/browse/node.rhtml +++ b/app/views/browse/node.rhtml @@ -1,11 +1,11 @@ <% @name = printable_name @node -@title = 'Node | ' + @name +@title = t('browse.node.node') + ' | ' + @name %> <%= render :partial => "map", :object => @node %> diff --git a/app/views/browse/node_history.rhtml b/app/views/browse/node_history.rhtml index 918be42dc..ea96c091f 100644 --- a/app/views/browse/node_history.rhtml +++ b/app/views/browse/node_history.rhtml @@ -1,6 +1,6 @@ <% @name = printable_name @node -@title = 'Node History | ' + @name +@title = t('browse.node_history.node_history') + ' | ' + @name %>

Node History: <%= h(@name) %>

@@ -11,9 +11,8 @@ <%= render :partial => "node_details", :object => node %>
<% end %> - <%= link_to "Download XML", :controller => "old_node", :action => "history" %> - or - <%= link_to "view details", :action => "node" %> + <%= t 'browse.node_history.download', :download_xml_link => link_to (t'browse.node_history.download_xml', :controller => "old_node", :action => "history"), + :view_details_link => link_to (t'browse.node_history.view_details', :action => "node") %> <%= render :partial => "map", :object => @node %> diff --git a/app/views/browse/not_found.rhtml b/app/views/browse/not_found.rhtml index 1322a0a6f..82a81afa5 100644 --- a/app/views/browse/not_found.rhtml +++ b/app/views/browse/not_found.rhtml @@ -1 +1 @@ -

Sorry, the <%= @type -%> with the id <%= params[:id] -%>, could not be found.

+

<%= t'browse.not_found.sorry', :type=> @type , :id => params[:id] %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index 8f6caf729..c086f66f9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -32,6 +32,24 @@ en: loading: "Loading..." deleted: "Deleted" view_larger_map: "View Larger Map" + node_details: + part_of: "Part of:" + node_history: + node_history: "Node History" + download: "{{download_xml_link}} or {{view_details_link}}" + download_xml: "Download XML" + view_details: "view details" + node: + node: "Node" + node_title: "Node: {{node_name}}" + download: "{{download_xml_link}} or {{view_history_link}}" + download_xml: "Download XML" + view_history: "view history" + not_found: + sorry: "Sorry, the {{type}} with the id {{id}}, could not be found." + paging_nav: + showing_page: "Showing page" + of: "of" diary_entry: list: new: New Diary Entry @@ -41,12 +59,12 @@ en: older_entries: Older Entries newer_entries: Newer Entries edit: - subject: "Subject: " - body: "Body: " - language: "Language: " - location: "Location: " - latitude: "Latitude: " - longitude: "Longitude: " + subject: "Subject:" + body: "Body:" + language: "Language:" + location: "Location:" + latitude: "Latitude:" + longitude: "Longitude:" use_map_link: "use map" save_button: "Save" marker_text: Diary entry location @@ -125,16 +143,9 @@ en: lost password link: "Lost your password?" login_button: Login lost_password: - title: lost password heading: "Forgotten Password?" email address: "Email Address:" new password button: "Send me a new password" - notice email on way: "Sorry you lost it :-( but an email is on its way so you can reset it soon." - notice email cannot find: "Couldn't find that email address, sorry." - reset_password: - title: reset password - flash changed check mail: "Your password has been changed and is on its way to your mailbox :-)" - flash token bad: "Didn't find that token, check the URL maybe?" new: heading: Create a User Account no_auto_account_create: "Unfortunately we are not currently able to create an account for you automatically." @@ -148,7 +159,6 @@ en: password: "Password: " confirm password: "Confirm Password: " signup: Signup - flash create success message: "User was successfully created. Check your email for a confirmation note, and you\'ll be mapping in no time :-)

Please note that you won't be able to login until you've received and confirmed your email address.

If you use an antispam system which sends confirmation requests then please make sure you whitelist webmaster@openstreetmap.org as we are unable to reply to any confirmation requests." no_such_user: body: "Sorry, there is no user with the name {{user}}. Please check your spelling, or maybe the link you clicked is wrong." view: @@ -215,3 +225,4 @@ en: flash success: "Home location saved successfully" go_public: flash success: "All your edits are now public, and you are now allowed to edit." +
-

Node: <%= h(@name) %>

+

<%= t'browse.node.node_title', :node_name => h(@name) %>

<%= render :partial => "navigation" %> @@ -15,9 +15,8 @@ <%= render :partial => "node_details", :object => @node %>
- <%= link_to "Download XML", :controller => "node", :action => "read" %> - or - <%= link_to "view history", :action => "node_history" %> + <%= t'browse.node.download', :download_xml_link => link_to (t('browse.node.download_xml'), :controller => "node", :action => "read"), + :view_history_link => link_to (t('browse.node.view_history'), :action => "node_history") %>