[Sugar-devel] [PATCH] localization support for GNOME version

Walter Bender walter.bender at gmail.com
Wed Feb 16 11:16:35 EST 2011


On Wed, Feb 16, 2011 at 9:26 AM, Erik Blankinship <erikb at mediamods.com> wrote:
>> 2. sugar.activity.main.main() handles locale and gettext() setup for
>>   Sugar activities. If you don't use it (because it probably won't
>>   work outside of Sugar) you'll have to take care of initialisation
>>   yourself.
>
> This might be helpful?
>
> If you are trying to run turtleart in gnome in your locale, try adding
> this bit of code to the top of turtleart.py:
>
> import gettext
> gettext.bindtextdomain( "org.laptop.TurtleArtActivity", "locale" )
> gettext.textdomain( "org.laptop.TurtleArtActivity" )

That is exactly what we do already. The problem is that es is not
recognized as a valid locale for setting LC_NUMERIC. Which is probably
the proper behavior, since es_PE is different than es_UY. If you
specifiy es_PE.utf8 it works as expected. Since Sugar does this, there
was not a problem.

-walter
>



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org


More information about the Sugar-devel mailing list