Commit 190a130ea45fb5911016be68cfb1038f762ea313
1 parent
083d29d3
Exists in
master
and in
21 other branches
Issue #63 Language selection bug
- Fixed wrong language selected when accessing a translation of an article.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/language_helper.rb
... | ... | @@ -16,7 +16,7 @@ module LanguageHelper |
16 | 16 | def language_chooser(environment=nil, options = {}) |
17 | 17 | locales = environment.nil? ? Noosfero.locales : environment.locales |
18 | 18 | return if locales.size < 2 |
19 | - current = language | |
19 | + current = FastGettext.locale | |
20 | 20 | separator = options[:separator] || ' — ' |
21 | 21 | |
22 | 22 | if options[:element] == 'dropdown' | ... | ... |