where to place mo

Hi, all

I have a question:

Where is the right place for *.mo files of wxPython application running on Windows system?
Or maybe the best way is to place them somewhere in C: and call for 'wxLocale_AddCatalogLookupPathPrefix()'?

Thanks!

Aleksej Kolga

Aleksej Kolga wrote:

Hi, all

I have a question:

Where is the right place for *.mo files of wxPython application running on Windows system?

As of 2.4.0.4 the wxWindows catalogs will get installed with wxPython to .../wxPython/locale/. You can put yours there too, but it might be better to keep them with your app.

Or maybe the best way is to place them somewhere in C: and call for 'wxLocale_AddCatalogLookupPathPrefix()'?

Yep, you can make an application specific directory and add it to the search path when your program starts.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

You know, maybe what's needed is some equiv to img2py for
translations, so they can be directly embedded within the module
structure. I'd much rather trust python's handling of the site-package
directory than leave it up to storing my .mo's within the filesystem,
unix, windows or otherwise. Would that work with the existing objects?
Could we feed them the translation files somehow? Just thinking out
loud...

                -- Mike

···

On Mon, Apr 07 @ 15:53, Robin Dunn wrote:

As of 2.4.0.4 the wxWindows catalogs will get installed with wxPython to
.../wxPython/locale/. You can put yours there too, but it might be
better to keep them with your app.

>Or maybe the best way is to place them somewhere in C: and call for
>'wxLocale_AddCatalogLookupPathPrefix()'?

Yep, you can make an application specific directory and add it to the
search path when your program starts.

--
Michael Gilfix
mgilfix@eecs.tufts.edu

For my gpg public key:
http://www.eecs.tufts.edu/~mgilfix/contact.html