i18n'ed the site set of views.
This commit is contained in:
parent
c014618ef2
commit
3a51160a5b
7 changed files with 50 additions and 33 deletions
|
@ -1,5 +1,5 @@
|
||||||
<% content_for :left_menu do %>
|
<% content_for :left_menu do %>
|
||||||
<%= link_to_function "Map key", "showKey();" %>
|
<%= link_to_function t('side.key.map_key'), "showKey();" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
@ -31,23 +31,21 @@
|
||||||
|
|
||||||
<% content_for "optionals" do %>
|
<% content_for "optionals" do %>
|
||||||
<div class="optionalbox">
|
<div class="optionalbox">
|
||||||
<span class="oboxheader">Search</span>
|
<span class="oboxheader"><%= t 'site.search.search' %></span>
|
||||||
<span class="whereami"><a href="javascript:describeLocation()">Where am I?</a></span>
|
<span class="whereami"><a href="javascript:describeLocation()"><%= t 'site.search.where_am_i' %></a></span>
|
||||||
<div class="search_form">
|
<div class="search_form">
|
||||||
<div id="search_field">
|
<div id="search_field">
|
||||||
<% form_remote_tag(:loading => "startSearch()",
|
<% form_remote_tag(:loading => "startSearch()",
|
||||||
:complete => "endSearch()",
|
:complete => "endSearch()",
|
||||||
:url => { :controller => :geocoder, :action => :search }) do %>
|
:url => { :controller => :geocoder, :action => :search }) do %>
|
||||||
<%= text_field_tag :query, h(params[:query]) %>
|
<%= text_field_tag :query, h(params[:query]) %>
|
||||||
<%= submit_tag "Go" %>
|
<%= submit_tag t('site.search.submit_text') %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<p id="search_active">Searching...</p>
|
<p id="search_active"><%= t 'site.search.searching' %></p>
|
||||||
</div>
|
</div>
|
||||||
<p class="search_help">
|
<p class="search_help">
|
||||||
examples: 'Alkmaar', 'Regent Street, Cambridge', 'CB2 5AQ',
|
<%= t 'site.search.search_help' %>
|
||||||
or 'post offices near Lünen'
|
|
||||||
<a href="http://wiki.openstreetmap.org/index.php/Search">more examples...</a>
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
<table class="sidebar_title" width="100%">
|
<table class="sidebar_title" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="left" id="sidebar_title">Search Results</td>
|
<td align="left" id="sidebar_title"><% t 'site.sidebar.search_results' %></td>
|
||||||
<td align="right"><a href="javascript:closeSidebar()">Close</a></td>
|
<td align="right"><a href="javascript:closeSidebar()"><%= t 'site.sidebar.close' %></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div id="sidebar_content">
|
<div id="sidebar_content">
|
||||||
|
|
|
@ -1,16 +1,14 @@
|
||||||
<% if OSM_STATUS == :database_offline or OSM_STATUS == :api_offline %>
|
<% if OSM_STATUS == :database_offline or OSM_STATUS == :api_offline %>
|
||||||
<p>The OpenStreetMap database is currently offline while
|
<p><%= t 'layouts.osm_offline' %>
|
||||||
essential database maintenance work is carried out.
|
|
||||||
</p>
|
</p>
|
||||||
<% elsif OSM_STATUS == :database_readonly or OSM_STATUS == :api_readonly %>
|
<% elsif OSM_STATUS == :database_readonly or OSM_STATUS == :api_readonly %>
|
||||||
<p>The OpenStreetMap database is currently in read-only mode while
|
<p><%= t 'layouts.osm_read_only' %>
|
||||||
essential database maintenance work is carried out.
|
|
||||||
</p>
|
</p>
|
||||||
<% elsif !@user.data_public? %>
|
<% elsif !@user.data_public? %>
|
||||||
<p>You haven't set your edits to be public.</p>
|
<p><%= t 'site.edit.not_public' %></p>
|
||||||
<p>You can no longer edit the map unless you do so. You can set your edits as public from your
|
<p><%= t 'site.edit.not_public_description',
|
||||||
<%= link_to 'user page', {:controller => 'user', :action => 'account', :display_name => @user.display_name, :anchor => 'public'}%>.</p>
|
:user_page => (link_to t('site.edit.user_page_link'), {:controller => 'user', :action => 'account', :display_name => @user.display_name, :anchor => 'public'}) %></p>
|
||||||
<p>(<a href="http://wiki.openstreetmap.org/index.php/Disabling_anonymous_edits">Find out why this is the case.</a>)</p>
|
<p><%= t 'site.edit.anon_edits', :link => link_to(t('site.edit.anon_edit_link_text'), t('site.edit.anon_edits_link')) %> (<a href=""></a>)</p>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% content_for :greeting do %>
|
<% content_for :greeting do %>
|
||||||
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
|
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
|
||||||
|
@ -54,11 +52,7 @@ zoom='14' if zoom.nil?
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<div id="map">
|
<div id="map">
|
||||||
You need a Flash player to use Potlatch, the
|
<%= t 'site.edit.flash_player_required' %>
|
||||||
OpenStreetMap Flash editor. You can <a href="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">download Flash Player from Adobe.com</a>.
|
|
||||||
|
|
||||||
<a href="http://wiki.openstreetmap.org/index.php/Editing">Several other options</a> are also available
|
|
||||||
for editing OpenStreetMap.
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= javascript_include_tag 'swfobject.js' %>
|
<%= javascript_include_tag 'swfobject.js' %>
|
||||||
|
@ -71,7 +65,7 @@ zoom='14' if zoom.nil?
|
||||||
|
|
||||||
window.onbeforeunload=function() {
|
window.onbeforeunload=function() {
|
||||||
if (!changesaved && !winie) {
|
if (!changesaved && !winie) {
|
||||||
return "You have unsaved changes. (To save in Potlatch, you should deselect the current way or point.)";
|
return "<%= t 'site.edit.potlatch_unsaved_changes' %>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,14 +10,14 @@
|
||||||
|
|
||||||
<noscript>
|
<noscript>
|
||||||
<div id="noscript">
|
<div id="noscript">
|
||||||
<p>You are either using a browser that doesn't support javascript, or you have disabled javascript.</p>
|
<p><%= t 'site.index.js_1' %></p>
|
||||||
<p>OpenStreetMap uses javascript for its slippy map.</p>
|
<p><%= t 'site.index.js_2' %></p>
|
||||||
<p>You may want to try the <a href="http://tah.openstreetmap.org/Browse/">Tiles@Home static tile browser</a> if you are unable to enable javascript.</p>
|
<p><%= t 'site.index.js_3' %></p>
|
||||||
</div>
|
</div>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|
||||||
<div id="map">
|
<div id="map">
|
||||||
<div id="permalink"><a href="/" id="permalinkanchor">Permalink</a></div>
|
<div id="permalink"><a href="/" id="permalinkanchor"><%= t 'site.index.permalink' %></a></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="attribution">
|
<div id="attribution">
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
<td align="right">http://openstreetmap.org/</td>
|
<td align="right">http://openstreetmap.org/</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" align="center">Licensed under the Creative Commons Attribution-Share Alike 2.0 license by the OpenStreetMap project and its contributors.</td>
|
<td colspan="2" align="center"><%= t 'site.index.license' %></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
<% if OSM_STATUS == :database_offline %>
|
<% if OSM_STATUS == :database_offline %>
|
||||||
<p>The OpenStreetMap database is currently offline while
|
<p><%= t 'layouts.osm_offline' %>
|
||||||
essential database maintenance work is carried out.
|
|
||||||
</p>
|
</p>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p>The OpenStreetMap database is currently in read-only mode while
|
<p><%= t 'layouts.osm_read_only' %>
|
||||||
essential database maintenance work is carried out.
|
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -56,3 +56,30 @@ en:
|
||||||
donate_link_text: donating
|
donate_link_text: donating
|
||||||
sotm: 'Come to the 2009 OpenStreetMap Conference, <a href="http://www.stateofthemap.org">The State of the Map</a>, July 10-12 in Amsterdam!'
|
sotm: 'Come to the 2009 OpenStreetMap Conference, <a href="http://www.stateofthemap.org">The State of the Map</a>, July 10-12 in Amsterdam!'
|
||||||
alt_donation: Make a Donation
|
alt_donation: Make a Donation
|
||||||
|
site:
|
||||||
|
index:
|
||||||
|
js_1: "You are either using a browser that doesn't support javascript, or you have disabled javascript."
|
||||||
|
js_2: "OpenStreetMap uses javascript for its slippy map."
|
||||||
|
js_3: 'You may want to try the <a href="http://tah.openstreetmap.org/Browse/">Tiles@Home static tile browser</a> if you are unable to enable javascript.'
|
||||||
|
permalink: Permalink
|
||||||
|
license: "Licensed under the Creative Commons Attribution-Share Alike 2.0 license by the OpenStreetMap project and its contributors."
|
||||||
|
edit:
|
||||||
|
not_public: "You haven't set your edits to be public."
|
||||||
|
not_public_description: "You can no longer edit the map unless you do so. You can set your edits as public from your {{user_page}}."
|
||||||
|
user_page_link: user page
|
||||||
|
anon_edits: "({{link}})"
|
||||||
|
anon_edits_link: "http://wiki.openstreetmap.org/wiki/Disabling_anonymous_edits"
|
||||||
|
anon_edits_link_text: "Find out why this is the case."
|
||||||
|
flash_player_required: 'You need a Flash player to use Potlatch, the OpenStreetMap Flash editor. You can <a href="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">download Flash Player from Adobe.com</a>. <a href="http://wiki.openstreetmap.org/index.php/Editing">Several other options</a> are also available for editing OpenStreetMap.'
|
||||||
|
potlatch_unsaved_changes: "You have unsaved changes. (To save in Potlatch, you should deselect the current way or point.)"
|
||||||
|
sidebar:
|
||||||
|
search_results: Search Results
|
||||||
|
close: Close
|
||||||
|
search:
|
||||||
|
search: Search
|
||||||
|
where_am_i: "Where am I?"
|
||||||
|
submit_text: "Go"
|
||||||
|
searching: "Searching..."
|
||||||
|
search_help: "examples: 'Alkmaar', 'Regent Street, Cambridge', 'CB2 5AQ', or 'post offices near Lünen' <a href='http://wiki.openstreetmap.org/index.php/Search'>more examples...</a>"
|
||||||
|
key:
|
||||||
|
map_key: "Map key"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue