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

Erik Blankinship erikb at mediamods.com
Wed Feb 16 09:26:51 EST 2011


> 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" )


More information about the Sugar-devel mailing list