Hi,
Dave Richards wrote:
Thank you very much. I have been beating my brains over how the
hell I was supposed to add my own files to the path - the manual
says wxLocale.AddCatalogLookupPathPrefix(), which doesn't exists.
Somebody really should write this kind of thing in the manual...
That's strange, I thought it must be mentioned somewhere, this is what
wxPython uses for all C++ static methods...
seem to be working for me. Armed with the information from your
email, I reinstalled wxPython (the funny paths are due to the
Mandrake RPMS)
I'll check if they still do it with wxGTK-2.4.0 RPM and if they do,
I'll complain about it.
L.Init("de")
0
>>> L.Init("en")
0
>>> L.Init("deutsch")
0
>>> L.Init("Deutsch")
0
Neither of these could work, please see wxLocale.Init documentation.
You are using the deprecated form here, where first argument (the
only one you give) is only descriptive. You'd have to use something
like Init("Deutch", "de", "de_DE") (the 3rd argument is plaform
specific!). Please don't use it,
>>> L.Init(wxLANGUAGE_GERMAN)
...use this one instead (it is supposed to work, there must be some
problem in wxPython).
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.2/site-packages/wxPython/fonts.py", line
318, in Init
val = apply(fontsc.wxLocale_Init,(self,) + _args, _kwargs)
TypeError: String or Unicode type required
This one's for Robin...
I just don't see what Im missing here,
You haven't yet initialized wxLocale, see above.
Regards,
Vaclav
···
--
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x465264C9