[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:03:54 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):

 The CP module gets the translation of each language and territory using
 python [http://docs.python.org/2/library/gettext.html#gettext.dgettext
 gettext.dgettext] with the domains 'iso_639' and 'iso_3166' respectively
 ([http://webapp5.rrz.uni-hamburg.de/SuSe-Dokumentation/packages/iso-
 codes/README a reference here]).

 This is an abbreviation of what is happening, having set English (USA) as
 primary language and Spanish (Argentina) as secondary:

 {{{
 [olpc at xo-1e-88-ab ~]$ cat ~/.i18n
 LANG="en_US.utf8"
 LANGUAGE="en_US.utf8:es_AR.utf8"
 [olpc at xo-1e-88-ab ~]$ echo $LANG
 es_ES.utf8
 [olpc at xo-1e-88-ab ~]$ echo $LANGUAGE
 en_US.utf8:es_AR.utf8
 [olpc at xo-1e-88-ab ~]$ python
 Python 2.7.3 (default, Aug 26 2012, 05:16:24)
 [GCC 4.7.1 20120720 (Red Hat 4.7.1-5)] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import gettext
 >>> print gettext.dgettext('iso_639', "French")
 Francés
 }}}

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


More information about the Bugs mailing list