Re: gettext on Windows

2006-10-28 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: > Leo Kislov wrote: > >> Try msgunfmt >> http://www.gnu.org/software/gettext/manual/html_node/gettext_128.html#SEC128 >> to see if it can convert your files back to text. > > Just tried it, and it was able to convert each of the .mo files back to > text without any prob

Re: gettext on Windows

2006-10-28 Thread russ . phillips . nospam
Leo Kislov wrote: > Try msgunfmt > http://www.gnu.org/software/gettext/manual/html_node/gettext_128.html#SEC128 > to see if it can convert your files back to text. Just tried it, and it was able to convert each of the .mo files back to text without any problems. Russ -- http://mail.python.org/

Re: gettext on Windows

2006-10-28 Thread Leo Kislov
[EMAIL PROTECTED] wrote: > Martin v. Löwis wrote: > > [EMAIL PROTECTED] schrieb: > > > Traceback (most recent call last): > > > File "panicbutton.py", line 36, in ? > > > lan = gettext.GNUTranslations (open (sLang, "rb")) > > > File "C:\Python24\lib\gettext.py", line 177, in __init__ > > >

Re: gettext on Windows

2006-10-28 Thread russ . phillips . nospam
Martin v. Löwis wrote: > [EMAIL PROTECTED] schrieb: > > Traceback (most recent call last): > > File "panicbutton.py", line 36, in ? > > lan = gettext.GNUTranslations (open (sLang, "rb")) > > File "C:\Python24\lib\gettext.py", line 177, in __init__ > > self._parse(fp) > > File "C:\Pyt

Re: gettext on Windows

2006-10-28 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: > Traceback (most recent call last): > File "panicbutton.py", line 36, in ? > lan = gettext.GNUTranslations (open (sLang, "rb")) > File "C:\Python24\lib\gettext.py", line 177, in __init__ > self._parse(fp) > File "C:\Python24\lib\gettext.py", line 280, in _p

Re: gettext on Windows

2006-10-28 Thread russ . phillips . nospam
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > lan = gettext.GNUTranslations (open (sLang)) > > are you sure the data file is a text file? what happens if you change > the above to > >lan = gettext.GNUTranslations (open (sLang, "rb")) The .mo files aren't text files, they're binary, bu

Re: gettext on Windows

2006-10-28 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > lan = gettext.GNUTranslations (open (sLang)) are you sure the data file is a text file? what happens if you change the above to lan = gettext.GNUTranslations (open (sLang, "rb")) ? -- http://mail.python.org/mailman/listinfo/python-list

gettext on Windows

2006-10-28 Thread russ . phillips . nospam
Hi, I'm trying to use gettext to internationalise my project [1], but I'm getting the following error message with some translations: "Traceback (most recent call last): file PanicButton.py line 36 in ? file Gettext.pyc line 177 in _init_ file Gettext.pyc line 274 in _parse struct.error : unpack