]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
Add a title to the changeset lists. Closes #1938.
[rails.git] / app / views / site / index.rhtml
index 37004e25bdbf872c91259622b53c5c6036164f41..3bccb7e044070aa31453abe79643095faa0456cd 100644 (file)
@@ -1,6 +1,6 @@
 <% 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('site.index.home'), "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> |
 <% end %>
 <% end %>
 
@@ -97,6 +97,8 @@ end
   var marker;
   var map;
 
+  OpenLayers.Lang.setCode("<%= I18n.locale.to_s %>");
+
   function mapInit(){
     map = createMap("map");