#6051 HIGH Update.: sugar-control-panel does not support setting the language to Amharic
Jim Gettys
jg at laptop.org
Tue Jan 22 17:35:40 EST 2008
We did have a report of setting the locale to Turkish in trac that
caused the machine to lose its cookies entirely.
I don't remember the root cause, or whether it has been solved.
- Jim
On Tue, 2008-01-22 at 19:41 +0000, Zarro Boogs per Child wrote:
> #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.
>
--
Jim Gettys
One Laptop Per Child
More information about the Devel
mailing list