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

Sascha Silbe sascha-ml-reply-to-2011-2 at silbe.org
Wed Feb 16 11:58:35 EST 2011


Excerpts from Walter Bender's message of Wed Feb 16 17:16:35 +0100 2011:

[bindtextdomain() etc.]
> That is exactly what we do already. The problem is that es is not
> recognized as a valid locale for setting LC_NUMERIC.

gettext and locale specific functions are more or less independent of
each other. The latter are initialized using [1]:

locale.setlocale(locale.LC_ALL, '')

Sugar does not do this as part of the activity framework (though we
probably should).

However TurtleArt already uses setlocale() in tawindow.TurtleArtWindow.
The only idea I have right now is that you might be using locale
dependent functions before TurtleArtWindow is instantiated. Try moving
the setlocale() call out of TurtleArtWindow. The setlocale() call
affects the entire process, so it shouldn't be hidden in a random
constructor anyway.

Sascha

[1] http://docs.python.org/library/locale.html#locale.setlocale
-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20110216/5c9ff881/attachment.pgp>


More information about the Sugar-devel mailing list