Detecting the native locale
walter at laptop.org
Sat Mar 8 11:47:34 EST 2008
$LANG should do the trick. If you want to experiment, try using
sugar-control-panel to set the language.
On Sat, Mar 8, 2008 at 10:42 AM, Joshua Minor <j at lux.vu> wrote:
> I'm trying to make Speak pick its default accent based on the native
> language of the laptop (per Walter's request
> ) This is a bit different from normal localization - although I
> need to do that also - because it is not just replacing strings. My
> guess is that I can just look at the environment variable $LANG and
> pick an accent with a similar ISO 639 language code.
> Can anyone confirm that using $LANG is appropriate for this?
> Also, aside from just setting $LANG to something else, how can I test
> that this actually works?
> Devel mailing list
> Devel at lists.laptop.org
One Laptop per Child
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel