Re: how to use i18n?

Greg Ward <[email protected]> Sat, 11 Sep 2004 22:11:19 -0400
Newsgroups gmane.comp.python.optik.user
Message-ID <[email protected]>
On 10 September 2004, leon breedt said:
> So, here is a sample snippet of how you tell gettext to look in the 
> appropriate file:
> 
> 
> from optik import OptionParser
> import gettext
> gettext.textdomain('optik')
> gettext.bindtextdomain('optik')

Cool, thank you!  I'll turn this into an example in the Optik examples/
directory.  Might even write some docs if I find the time (yeah, right).

        Greg

PS. I quite agree that it should be up to the application to setup
gettext at runtime.  I even think that it should be up to the
application to install optik.mo, because it might really be optparse.mo,
and I don't plan on putting the Optik message files in Python's source
tree.  (Mainly because there's no existing tradition of distributing
internationalized modules with Python, so no conventions or
infrastructure for doing so.)

-- 
Greg Ward <[email protected]>                         http://www.gerg.ca/
I joined scientology at a garage sale!!


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php