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

Walter Bender walter.bender at gmail.com
Thu Feb 17 11:07:20 EST 2011


On Thu, Feb 17, 2011 at 11:03 AM, Claudio Carboncini
<claudio.carboncini at gmail.com> wrote:
> Hi,
>
> 2011/2/16 Erik Blankinship <erikb at mediamods.com>
>>
>> > 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" )
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>
> I wrote to the list about localization in italian of turtle art outside of
> Sugar.
> Adding lines of code that you propose, now everything works perfectly
> Thanks
> claudio
> --
> claudio.carboncini at gmail.com
> "most of skolelinux server admins are not IT professionals"
> Registered Linux User #477065
>

Glad to hear that it works. This is already incorporated in v106,
which will be the next release.

-walter

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


More information about the Sugar-devel mailing list