include the correct language and direction in the html element. fixes #1930. fixes...
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Sun, 7 Jun 2009 18:44:59 +0000 (18:44 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Sun, 7 Jun 2009 18:44:59 +0000 (18:44 +0000)
app/views/layouts/site.rhtml
config/locales/en.yml

index 43c6091b098ba72b1505f06363ebf6cd402c279d..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">
 <!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' %>
   <head>
     <%= javascript_include_tag 'prototype' %>
     <%= javascript_include_tag 'site' %>
index b3a678cd3b2b414724868768c5480c68d555ca0d..fee3e8629a40c70662e1e3e0cabbf2636b7b7366 100644 (file)
@@ -1,4 +1,6 @@
 en:
 en:
+  html:
+    dir: ltr
   activerecord:
     # Translates all the model names, which is used in error handling on the web site
     models:
   activerecord:
     # Translates all the model names, which is used in error handling on the web site
     models: