[Bugs] #4327 sugar UNSP: Language CP module displays combo text in 2nd preferred language

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Feb 26 17:46:31 EST 2013


#4327: Language CP module displays combo text in 2nd preferred language
------------------------------------------+---------------------------------
    Reporter:  garycmartin                |          Owner:  erikos  
        Type:  enhancement                |         Status:  reopened
    Priority:  Unspecified by Maintainer  |      Milestone:  1.0     
   Component:  sugar                      |        Version:  0.98.x  
    Severity:  Unspecified                |     Resolution:          
    Keywords:                             |   Distribution:  OLPC    
Status_field:  Unconfirmed                |  
------------------------------------------+---------------------------------

Comment(by manuq):

 Using the class-based API, each language name can be obtained in its own
 language:

 {{{
 >>> tra = gettext.translation('iso_639', languages=['fr'])
 >>> print tra.gettext("French")
 français
 }}}

 And, the issue with English might be because of this:

 {{{
 >>> tra = gettext.translation('iso_639', languages=['en'])
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python2.7/gettext.py", line 471, in translation
     raise IOError(ENOENT, 'No translation file found for domain', domain)
 IOError: [Errno 2] No translation file found for domain: 'iso_639'
 }}}

 In fact the bug only happens with English as primary language.  Setting
 French as primary language displays the list inside the combo in French,
 regardless of what language is set as secondary.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/4327#comment:8>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list