#6051 HIGH Update.: sugar-control-panel does not support setting the language to Amharic

Zarro Boogs per Child bugtracker at laptop.org
Tue Jan 22 14:41:23 EST 2008


#6051: sugar-control-panel does not support setting the language to Amharic
---------------------------+------------------------------------------------
  Reporter:  bernie        |       Owner:  erikos                           
      Type:  defect        |      Status:  new                              
  Priority:  high          |   Milestone:  Update.1                         
 Component:  localization  |     Version:  Development build as of this date
Resolution:                |    Keywords:                                   
  Verified:  0             |    Blocking:                                   
 Blockedby:                |  
---------------------------+------------------------------------------------

Comment(by bernie):

 Replying to [comment:2 erikos]:
 > I created the list from /usr/share/system-config-language/locale-list
 The reason why we can not just use 'locale -a' is that we need to do the
 mapping (or at least i thought we should) from the locale e.g. am_ET.UTF-8
 to something more meaningful like Amharic/Ethiopian.

 Human readable names are available too:

  locale -a -v

 There may be glibc APIs to extract this information programmatically, but
 from Python it may be easier to just popen this command and parse its
 output.

 I believe the language and country name will come out translated in the
 current locale, which may be good or bad.  If we want to always force
 English, just do:

  LANG=C locale -a -v


 > Maybe we should have two options, one to have a mapping for the
 languages we support (a file s.c.p reads in) and then another option that
 you can set any locale you like (for example for people to test).

 An easy way to automatically detect which locales are supported, at least
 partially, is checking for the existence of the sugar catalog for it.

 But there's no harm in setting a locale for which there exist no
 translations: the UI will come up in English and some of the locale
 specific settings, such as the date format, may at least be set correctly.

-- 
Ticket URL: <http://dev.laptop.org/ticket/6051#comment:9>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list