Re: gettext again

2005-08-10 Thread cantabile
stasz a écrit : > On Tue, 09 Aug 2005 23:59:26 +0200, cantabile wrote: > > >>stas a écrit : >> >> >>>As a reminder, make sure that you install gettext in the namespace >>>of your toplevel module. > > [] > >>Noticed something : >>I must import test2.py AFTER gettext.install('test1') and even

Re: gettext again

2005-08-09 Thread stasz
On Tue, 09 Aug 2005 23:59:26 +0200, cantabile wrote: > stas a écrit : > >> As a reminder, make sure that you install gettext in the namespace >> of your toplevel module. [] > Noticed something : > I must import test2.py AFTER gettext.install('test1') and even then, if > test3.py imports test

Re: gettext again

2005-08-09 Thread cantabile
stas a écrit : > As a reminder, make sure that you install gettext in the namespace > of your toplevel module. > What I mean is this: > > test1.py imports test2.py and test3.py > test2.py imports test4.py > > Now you have to place the gettext.install call in test1.py and > then the other modules

Re: gettext again

2005-08-09 Thread cantabile
Ok, I'll try that. Thanks again Stasz ! -- http://mail.python.org/mailman/listinfo/python-list

Re: gettext again

2005-08-08 Thread stas
On Mon, 08 Aug 2005 17:39:34 +0200, cantabile wrote: > BTW stasz, > Maybe you'll have still some time for the following question. Trying my > luck :)) > > Suppose I have several units (.py files), say test.py test1.py tets2.py > , test.py being my main file. > I've read I can import gettext and

Re: gettext again

2005-08-08 Thread stas
On Mon, 08 Aug 2005 17:01:21 +0200, cantabile wrote: > stasz a écrit : > Wht ! Working at last, after three days... It wasn't the LANG param [...] > Anyways, you made my day my friend ! > Many many thanks ! Your welcome :-) Stas -- http://mail.python.org/mailman/listinfo/python-list

Re: gettext again

2005-08-08 Thread cantabile
BTW stasz, Maybe you'll have still some time for the following question. Trying my luck :)) Suppose I have several units (.py files), say test.py test1.py tets2.py , test.py being my main file. I've read I can import gettext and install in the main unit. Then, must I create .po files for each u

Re: gettext again

2005-08-08 Thread cantabile
stasz a écrit : > Your steps seems alright. > Just a thought; you do start test1.py from a [EMAIL PROTECTED] > environment do you? > I mean in a xterm do: export [EMAIL PROTECTED] > And then start test1.py from there. > > Stas Wht ! Working at last, after three days... It wasn't the LANG par

Re: gettext again

2005-08-08 Thread stasz
On Mon, 08 Aug 2005 02:56:35 +0200, cantabile wrote: > stasz a écrit : >> On Sun, 07 Aug 2005 21:33:21 +0200, cantabile wrote: >> >> >>>stasz a écrit : >>> On Sun, 07 Aug 2005 11:09:14 +0200, cantabile wrote: >Hi, >I'm failing to make it work but can't find out what's

Re: gettext again

2005-08-07 Thread cantabile
stasz a écrit : > On Sun, 07 Aug 2005 21:33:21 +0200, cantabile wrote: > > >>stasz a écrit : >> >>>On Sun, 07 Aug 2005 11:09:14 +0200, cantabile wrote: >>> >>> >>> Hi, I'm failing to make it work but can't find out what's wrong. Here's what I do : >>> >>>[] >>> >>> How come ?

Re: gettext again

2005-08-07 Thread stasz
On Sun, 07 Aug 2005 21:33:21 +0200, cantabile wrote: > stasz a écrit : >> On Sun, 07 Aug 2005 11:09:14 +0200, cantabile wrote: >> >> >>>Hi, >>>I'm failing to make it work but can't find out what's wrong. Here's what >>>I do : >> >> [] >> >>>How come ? What's wrong with what I am doing ? >

Re: gettext again

2005-08-07 Thread cantabile
stasz a écrit : > On Sun, 07 Aug 2005 11:09:14 +0200, cantabile wrote: > > >>Hi, >>I'm failing to make it work but can't find out what's wrong. Here's what >>I do : > > [] > >>How come ? What's wrong with what I am doing ? > > Start with this little howto about gettext. > http://childspla

Re: gettext again

2005-08-07 Thread stasz
On Sun, 07 Aug 2005 11:09:14 +0200, cantabile wrote: > Hi, > I'm failing to make it work but can't find out what's wrong. Here's what > I do : [] > How come ? What's wrong with what I am doing ? Start with this little howto about gettext. http://childsplay.sourceforge.net/translate-howto.html

gettext again

2005-08-07 Thread cantabile
Hi, I'm failing to make it work but can't find out what's wrong. Here's what I do : test.py import gettext gettext.install('') msg = _("Message without accented characters") print msg Then I do : xgettext test.py mv message.po message pot msginit --> outpu