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

Claudio Carboncini claudio.carboncini at gmail.com
Thu Feb 17 11:03:02 EST 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110217/cfb6043c/attachment.html>


More information about the Sugar-devel mailing list