]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/site.rhtml
include the correct language and direction in the html element. fixes #1930. fixes...
[rails.git] / app / views / layouts / site.rhtml
index e7e058963f04c6a4565ca299b46c63444d0ca89d..1134e08689495f4483085441e1707d03188b7011 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= I18n.locale %>" lang="<%= I18n.locale %>" dir="<% t'html.dir' %>">
   <head>
     <%= javascript_include_tag 'prototype' %>
     <%= javascript_include_tag 'site' %>
@@ -81,8 +81,8 @@
         </p>
         <p>
         <%= t 'layouts.intro_3', 
-              :ucl => '<a href="http://www.vr.ucl.ac.uk">UCL VR Centre</a>', 
-              :bytemark => '<a href="http://www.bytemark.co.uk">bytemark</a>' %>
+              :ucl => '<a href="http://www.vr.ucl.ac.uk">' + t('layouts.intro_3_ucl') + '</a>', 
+              :bytemark => '<a href="http://www.bytemark.co.uk">' + t('layouts.intro_3_bytemark') + '</a>' %>
         </p>
       </div>
       <% end %>