diff options
| -rw-r--r-- | app/controllers/application_controller.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 8cde89db0..7e7b9b890 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,7 +1,12 @@ class ApplicationController < ActionController::Base protect_from_forgery before_filter :authenticate_user! - + before_filter :set_locale + + def set_locale + I18n.locale = session[:language] || I18n.default_locale + end + protected def current_organisation |
