[sugar] i18n for python with gettext

Julius B. Lucks julius at younglucks.com
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
i10n.install()

?

Is there already something like this?

Cheers,

Julius

------------------------------------------------------------------------ 
---
http://www.openwetware.org/wiki/User:Julius_B._Lucks
------------------------------------------------------------------------ 
---



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


More information about the Sugar mailing list