<% content_for :greeting do %>
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
-<%= link_to_function 'home', "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> |
+ <%= link_to_function t('layouts.home'), "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)", { :title => t('layouts.home_tooltip') } %> |
<% end %>
<% end %>
<div id="attribution">
<table width="100%">
<tr>
- <td align="left">http://creativecommons.org/licenses/by-sa/2.0/</td>
- <td align="right">http://openstreetmap.org/</td>
- </tr>
- <tr>
- <td colspan="2" align="center"><%= t 'site.index.license' %></td>
+ <td align="center"><%=
+ I18n.t('site.index.license.notice',
+ :license_name => ('<a href="' + t('site.index.license.license_url') + '">' + t('site.index.license.license_name') + '</a>'),
+ :project_name => ('<a href="' + t('site.index.license.project_url') + '">' + t('site.index.license.project_name') + '</a>'))
+ %></td>
</tr>
</table>
</div>
var marker;
var map;
+ OpenLayers.Lang.setCode("<%= I18n.locale.to_s %>");
+
function mapInit(){
map = createMap("map");
var zoom = map.getZoom();
var layers = getMapLayers();
var extents = getMapExtent();
+ var expiry = new Date();
updatelinks(lonlat.lon, lonlat.lat, zoom, layers, extents.left, extents.bottom, extents.right, extents.top);
-
- document.cookie = "_osm_location=" + lonlat.lon + "|" + lonlat.lat + "|" + zoom + "|" + layers;
+
+ expiry.setYear(expiry.getFullYear() + 10);
+ document.cookie = "_osm_location=" + lonlat.lon + "|" + lonlat.lat + "|" + zoom + "|" + layers + "; expires=" + expiry.toGMTString();
}
function resizeContent() {