[sugar] i18n for python with gettext

Julius B. Lucks julius
Wed Jun 20 17:39:40 EDT 2007

Hi All,

There has been some recent discussion about i18n and activities.   
Using the python gettext module, I set up i18n in Kuku, and put up  
some notes at http://wiki.laptop.org/go/Python_i18n .  It looks like  
there is a bit of code that needs to be in each activity, such as  
some logic for determining which language to localize to, and pulling  
the correct .mo file for it. etc.  Is it appropriate to put this code  
in some sugar module (sugar.i10n for example?) so that all activity  
developers have to do is wrap strings in _(), create the .pot/.po/.mo  
files, and do something like (suggested by mncharity)

from sugar import i10n


Is there already something like this?




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.laptop.org/pipermail/sugar/attachments/20070620/81c69ba4/attachment.htm 

More information about the Sugar-devel mailing list