more databrowser i18n

This commit is contained in:
Andy Allan 2009-05-30 15:44:39 +00:00
parent 361819b0fe
commit c48263e15c
6 changed files with 36 additions and 27 deletions

View file

@ -4,7 +4,7 @@
<% unless node_details.ways.empty? and node_details.containing_relation_members.empty? %>
<tr valign="top">
<th>Part of:</th>
<th><%= t 'browse.node_details.part_of' %></th>
<td>
<table cellpadding="0">
<% node_details.ways.each do |way| %>

View file

@ -1,12 +1,12 @@
<tr><td colspan='2'>
<% 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) } %>

View file

@ -1,11 +1,11 @@
<%
@name = printable_name @node
@title = 'Node | ' + @name
@title = t('browse.node.node') + ' | ' + @name
%>
<table width="100%">
<tr>
<td>
<h2>Node: <%= h(@name) %></h2>
<h2><%= t'browse.node.node_title', :node_name => h(@name) %></h2>
</td>
<td>
<%= render :partial => "navigation" %>
@ -15,9 +15,8 @@
<td>
<%= render :partial => "node_details", :object => @node %>
<hr />
<%= 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") %>
</td>
<%= render :partial => "map", :object => @node %>
</tr>

View file

@ -1,6 +1,6 @@
<%
@name = printable_name @node
@title = 'Node History | ' + @name
@title = t('browse.node_history.node_history') + ' | ' + @name
%>
<h2>Node History: <%= h(@name) %></h2>
@ -11,9 +11,8 @@
<%= render :partial => "node_details", :object => node %>
<hr />
<% 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") %>
</td>
<%= render :partial => "map", :object => @node %>
</tr>

View file

@ -1 +1 @@
<p>Sorry, the <%= @type -%> with the id <%= params[:id] -%>, could not be found.</p>
<p><%= t'browse.not_found.sorry', :type=> @type , :id => params[:id] %></p>

View file

@ -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 :-)<br /><br />Please note that you won't be able to login until you've received and confirmed your email address.<br /><br />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."