#830: investigate problems with translation

Type: BugItem Feature: InternationalizationAndLocalization Tags: colivre
ScheduledFor: 0.20.0? Assigned to: AntonioTerceiro Task Points: 6
Priority: 10 Status: NoFeedback?  
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. frown

-- 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


Add comment
You need to login to be able to comment.
 

Commits

Display the commits related to this action item!

ActionItemForm edit

Title investigate problems with translation
ActionItemType? BugItem
Priority 10
Tags colivre
Feature InternationalizationAndLocalization
TaskPoints? 6
ResponsibleDevelopers AntonioTerceiro
ScheduledFor? 0.20.0?
AffectsVersion?
Status NoFeedback?
Ticket SAC:6491
Topic revision: r20 - 25 Feb 2010 - 13:04:01 - JoenioCosta
 
Copyright © 2007-2010 Noosfero
Colivre - Cooperativa de Tecnologias Livres