Commit 5768c140546c322b386769cdb0b8b2e473a837a8
Exists in
master
and in
29 other branches
Merge branch 'ai3085' into 'stable'
Use I18n fallbacks and default_locale as in FastGettext http://noosfero.org/Development/ActionItem3085
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 | ... | ... |