[Sugar-devel] Unicode strings in translations

Martin Langhoff martin.langhoff at gmail.com
Mon Aug 13 16:00:31 EDT 2012


On Mon, Aug 13, 2012 at 12:35 PM, Manuel Kaufmann <humitos at gmail.com> wrote:
> To get Unicode strings from gettext I had to put these lines in my
> lesssonscreen.py file:
>
> import gettext
> gettext.install('po', unicode=True)

Awright. Seems like gettext hasn't realized that it's 2012 and
defaults to using codepages.

I'd vote for gettext.install('po', unicode=True) everywhere. All Sugar
builds have been in the utf-8 era, so this should work even in
extremely old builds.




m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff


More information about the Sugar-devel mailing list