Commit 6e7e44d5921823e85dd9c810ab5787bec5b39dcc
1 parent
e137c34d
Exists in
master
and in
29 other branches
Use I18n fallbacks and default_locale
Showing
2 changed files
with
5 additions
and
0 deletions
Show diff stats
app/controllers/application_controller.rb
... | ... | @@ -65,6 +65,7 @@ class ApplicationController < ActionController::Base |
65 | 65 | FastGettext.default_locale = environment.default_locale |
66 | 66 | FastGettext.locale = (params[:lang] || session[:lang] || environment.default_locale || request.env['HTTP_ACCEPT_LANGUAGE'] || 'en') |
67 | 67 | I18n.locale = FastGettext.locale |
68 | + I18n.default_locale = FastGettext.default_locale | |
68 | 69 | if params[:lang] |
69 | 70 | session[:lang] = params[:lang] |
70 | 71 | end | ... | ... |