$LANG should do the trick. If you want to experiment, try using sugar-control-panel to set the language.<br><br>-walter<br><br><div class="gmail_quote">On Sat, Mar 8, 2008 at 10:42 AM, Joshua Minor <<a href="mailto:j@lux.vu">j@lux.vu</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm trying to make Speak pick its default accent based on the native<br>
language of the laptop (per Walter's request <a href="http://dev.laptop.org/ticket/6656" target="_blank">http://dev.laptop.org/ticket/6656</a><br>
) This is a bit different from normal localization - although I<br>
need to do that also - because it is not just replacing strings. My<br>
guess is that I can just look at the environment variable $LANG and<br>
pick an accent with a similar ISO 639 language code.<br>
<br>
Can anyone confirm that using $LANG is appropriate for this?<br>
<br>
Also, aside from just setting $LANG to something else, how can I test<br>
that this actually works?<br>
<br>
-josh<br>
<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Walter Bender<br>One Laptop per Child<br><a href="http://laptop.org">http://laptop.org</a>