diff --git a/app/helpers/language_helper.rb b/app/helpers/language_helper.rb index 3955e28..6f2abab 100644 --- a/app/helpers/language_helper.rb +++ b/app/helpers/language_helper.rb @@ -14,7 +14,7 @@ module LanguageHelper if options[:element] == 'dropdown' select_tag('lang', options_for_select(Noosfero.locales.map{|code,name| [name, code]}, current), - :onchange => "document.location='?' + name + '=' + value;", + :onchange => "document.location.href='?' + name + '=' + value;", :help => _('The language you choose here is the language used for options, buttons, etc. It does not affect the language of the content created by other users.') ) else diff --git a/app/views/layouts/application.rhtml b/app/views/layouts/application.rhtml index 4b6c52a..0ec0fad 100644 --- a/app/views/layouts/application.rhtml +++ b/app/views/layouts/application.rhtml @@ -1,3 +1,4 @@ + @@ -91,18 +92,18 @@ <%= _("This bar helps you find information following two paths or dimensions. First dimension is composed of categories, which you'll find in the colored tabs in the top. Second dimension has content types, and you'll find them in the animated bar on your right.") % @environment.name %> -