Actually set the locale from the users browser request, rather than just parsing it.

This commit is contained in:
Shaun McDonald 2009-05-27 12:57:28 +00:00
parent 7cda38bb25
commit 4ee48d2ad9

View file

@ -102,7 +102,7 @@ class ApplicationController < ActionController::Base
end end
def set_locale def set_locale
request.compatible_language_from(I18n.available_locales) I18n.locale = request.compatible_language_from(I18n.available_locales)
end end
def api_call_handle_error def api_call_handle_error