]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application.rb
Actually set the locale from the users browser request, rather than just parsing it.
[rails.git] / app / controllers / application.rb
index 97332ba01eeabd25b58398450b3cd9097e3a0c64..3d16ffa6954d22db95c3f2bad0d00c70cdceef33 100644 (file)
@@ -102,7 +102,7 @@ class ApplicationController < ActionController::Base
   end
   
   def set_locale
   end
   
   def set_locale
-    request.compatible_language_from(I18n.available_locales)
+    I18n.locale = request.compatible_language_from(I18n.available_locales)
   end
 
   def api_call_handle_error
   end
 
   def api_call_handle_error