[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:12:52 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):

 Changing the order of the languages in $LANGUAGE doesn't affect the
 result, Spanish translation is returned anyways.  Removing Spanish
 language makes English translation appear:

 {{{
 [olpc at xo-1e-88-ab ~]$ export LANGUAGE=es_AR.utf8:en_US.utf8
 [olpc at xo-1e-88-ab ~]$ python -c "import gettext; print
 gettext.dgettext('iso_639', 'French')"
 Francés
 [olpc at xo-1e-88-ab ~]$ export LANGUAGE=en_US.utf8:es_AR.utf8
 [olpc at xo-1e-88-ab ~]$ python -c "import gettext; print
 gettext.dgettext('iso_639', 'French')"
 Francés
 [olpc at xo-1e-88-ab ~]$ export LANGUAGE=en_US.utf8
 [olpc at xo-1e-88-ab ~]$ python -c "import gettext; print
 gettext.dgettext('iso_639', 'French')"
 French
 }}}

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


More information about the Bugs mailing list