[Bugs] #4449 sugar UNSP: "Spanish" not translated in My Settings language section

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Mar 1 07:07:39 EST 2013


#4449: "Spanish" not translated in My Settings language section
------------------------------------------+---------------------------------
    Reporter:  manuq                      |          Owner:  manuq      
        Type:  defect                     |         Status:  new        
    Priority:  Unspecified by Maintainer  |      Milestone:  1.0        
   Component:  sugar                      |        Version:  Unspecified
    Severity:  Unspecified                |       Keywords:             
Distribution:  Unspecified                |   Status_field:  Unconfirmed
------------------------------------------+---------------------------------

Comment(by manuq):

 We can also think other posibilities.  I've found python package named
 'babel' (http://babel.edgewall.org/ or yum install babel) that seems to
 map language code with name:

 {{{
 from babel import Locale
 >>> locale = Locale('es', 'UY')
 >>> print locale.display_name
 español (Uruguay)
 }}}

 {{{
 >>> locale = Locale('bs', 'BA')
 >>> print locale.display_name
 bosanski (Bosna i Hercegovina)
 }}}

 Unfortunatly, not the perfect solution:

 {{{
 >>> locale = Locale('el', 'EL')
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python2.7/site-packages/babel/core.py", line 137, in
 __init__
     raise UnknownLocaleError(identifier)
 babel.core.UnknownLocaleError: unknown locale 'el_EL'
 }}}

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


More information about the Bugs mailing list