sometimes the system is presented in English and in Portuguese randomly, without the user changing explictly the language.
--
AntonioTerceiro -- 04 Nov 2008
This seems to be problem with the generation of the content of the blocks. Sometimes title of 'Communities block' has problems and 'Friends block' no.
--
JoenioCosta - 29 Nov 2008
Not only for Blocks, articles too. This seems problems with content (html) generated by Models.
--
JoenioCosta - 29 Nov 2008
the case with blocks is that once their title is edited by the user, it's not translated anymore (what is expected).
The problem here is that sometimes, for some unknown reason, the entire user interface is presented in English instead of Portuguese, even with the browser configured for preferring pt-br. And it doesn't seem to be related to a specific browser.
Unfortunately I could not reproduce the problem yet.
--
AntonioTerceiro - 09 Dec 2008
Postponing, we could not reproduce it yet.
--
AntonioTerceiro - 12 Dec 2008
something that might be related to the problem.
terceiro@morere~/s/noosfero (master) > ack GetText app/
app/helpers/dates_helper.rb
3: include GetText
app/helpers/profile_editor_helper.rb
3: include GetText
app/helpers/content_viewer_helper.rb
3: include GetText
app/helpers/categories_helper.rb
3: include GetText
app/helpers/application_helper.rb
581: include GetText
app/helpers/language_helper.rb
3: code = GetText.locale.to_s
app/controllers/application.rb
113: # force GetText to load a matching locale
114: GetText.locale = nil
app/models/task.rb
15: include GetText
--
AntonioTerceiro - 09 Feb 2009
I think I found the problem: we should use gettext only at the instance scope, never at the class scope:
http://zargony.com/2008/07/02/using-gettext-at-class-level-with-rails
--
AntonioTerceiro - 25 Mar 2009
not that easy, this was not the problem
--
AntonioTerceiro - 25 Mar 2009
Daniel reported problems with the comment notification: sometimes it works correctly, one time the e-mail came with the subject in English and the body in Portuguese, and another time it came with the subject in Portuguese and the body in English ... too fucking weird.
--
AntonioTerceiro - 25 Mar 2009
I think that the problem here may be solved when we finally can upgrade rails and ruby-gettext
--
AntonioTerceiro - 13 May 2009
The upgrade to use Debian Lenny's rails and ruby-gettext is done (
AI:1178). Now we must check whether this is solved or not.
--
AntonioTerceiro - 24 Jul 2009
adding this item to 0.20.0 release. the problem is still happening, after all. I took a more aggressive approach, making sure that a locale is always set, unless the locale automatically detected by gettext is included in the list of supported locales.
--
AntonioTerceiro - 26 Aug 2009
check
3c321ef
--
AntonioTerceiro - 26 Aug 2009
Problems of translation persist! English keeps coming randomly!!
Is there any perspective to solve this problem??
--
DanielTygel - 16 Oct 2009