[Git][noosfero/noosfero][master] 2 commits: Issue #63 Language selection bug
Bráulio Bhavamitra
gitlab at gitlab.com
Wed Jun 17 20:05:24 BRT 2015
Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero
Commits:
190a130e by Tallys Martins at 2015-04-24T16:16:18Z
Issue #63 Language selection bug
- Fixed wrong language selected when accessing a translation of an
article.
- - - - -
f45a5570 by Bráulio Bhavamitra at 2015-06-17T23:05:04Z
Merge branch 'language_selection_bug' into 'master'
Issue #63 Language selection bug
- Fixed wrong language selected when accessing a translation page of an
article.
See Issue #63 for more details.
See merge request !559
- - - - -
1 changed file:
- app/helpers/language_helper.rb
Changes:
=====================================
app/helpers/language_helper.rb
=====================================
--- a/app/helpers/language_helper.rb
+++ b/app/helpers/language_helper.rb
@@ -16,7 +16,7 @@ module LanguageHelper
def language_chooser(environment=nil, options = {})
locales = environment.nil? ? Noosfero.locales : environment.locales
return if locales.size < 2
- current = language
+ current = FastGettext.locale
separator = options[:separator] || ' — '
if options[:element] == 'dropdown'
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/c055f168bc1ef1c15fa00906a3d546526a70ed97...f45a557046c43dfe97616dd31e7577625bb23348
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150617/c1988322/attachment.html>
More information about the Noosfero-dev
mailing list