I've managed to add l10n for epilicious[1], a small extension for
epiphany[2] written in Python.  Basically what I've done is

 gtk.glade.bindtextdomain(mydomain)
 t = gettext.translation(mydomain)
 _ = t.ugettext

in the main file.  Then I load glade files passing the domain explicitly
to them.  This seems to work just fine, but recently I was asked whether
I need a call to gettext.bind_textdomain_codeset() in order to specify
UTF-8 to be used.  Do I?

/M

[1]: http://therning.org/magnus/computer/epilicious/
[2]: http://www.gnome.org/projects/epiphany/

-- 
Magnus Therning                             (OpenPGP: 0xAB4DFBA4)
[EMAIL PROTECTED]             Jabber: [EMAIL PROTECTED]
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

You know, take Lisp. You know, it’s the most beautiful language in the
world. At least up until Haskell came along.
     -- Larry Wall

Attachment: pgpAf8FNuhSrt.pgp
Description: PGP signature

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to