Where are the wxstd.mo files?

The Wiki <http://wiki.wxpython.org/index.cgi/Internationalization>
says:

""" The wxstd.mo files contain the compiled string dictionaries for
wxPython. These files are distributed with wxPython and are stored
under the Python/Lib/site-packages/wxPython/locale/xx/LC_MESSAGES
directories (where xx is the language code). Just take them can copy
them in your locale directories. """

That was ok as for wxPython 2.4.2.4. Now I just upgraded to 2.5.1.5
(wxPythonWIN32-2.5.1.5-Py23.exe) and I couldn't find the wxstd.mo
files anymore. Where are they?

Thanks in advance.

-- tacao

E. A. Tacao wrote:

The Wiki <http://wiki.wxpython.org/index.cgi/Internationalization&gt;
says:

""" The wxstd.mo files contain the compiled string dictionaries for
wxPython. These files are distributed with wxPython and are stored
under the Python/Lib/site-packages/wxPython/locale/xx/LC_MESSAGES
directories (where xx is the language code). Just take them can copy
them in your locale directories. """

That was ok as for wxPython 2.4.2.4. Now I just upgraded to 2.5.1.5
(wxPythonWIN32-2.5.1.5-Py23.exe) and I couldn't find the wxstd.mo
files anymore. Where are they?

They are now in .../site-packages/wx/locale/...

···

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

In Tuesday, May 25, 2004, 2:18:06 PM, Robin wrote:

E. A. Tacao wrote:

The Wiki <http://wiki.wxpython.org/index.cgi/Internationalization&gt;
says:

""" The wxstd.mo files contain the compiled string dictionaries for
wxPython. These files are distributed with wxPython and are stored
under the Python/Lib/site-packages/wxPython/locale/xx/LC_MESSAGES
directories (where xx is the language code). Just take them can copy
them in your locale directories. """

That was ok as for wxPython 2.4.2.4. Now I just upgraded to 2.5.1.5
(wxPythonWIN32-2.5.1.5-Py23.exe) and I couldn't find the wxstd.mo
files anymore. Where are they?

They are now in .../site-packages/wx/locale/...

But the installer wxPythonWIN32-2.5.1.5-Py23.exe is not creating this
directory neither putting any wxstd.mo files anywhere. Do I need to
use the unicode version instead?

-- tacao

E. A. Tacao wrote:

In Tuesday, May 25, 2004, 2:18:06 PM, Robin wrote:

> E. A. Tacao wrote:

The Wiki <http://wiki.wxpython.org/index.cgi/Internationalization&gt;
says:

""" The wxstd.mo files contain the compiled string dictionaries for
wxPython. These files are distributed with wxPython and are stored
under the Python/Lib/site-packages/wxPython/locale/xx/LC_MESSAGES
directories (where xx is the language code). Just take them can copy
them in your locale directories. """

That was ok as for wxPython 2.4.2.4. Now I just upgraded to 2.5.1.5
(wxPythonWIN32-2.5.1.5-Py23.exe) and I couldn't find the wxstd.mo
files anymore. Where are they?

> They are now in .../site-packages/wx/locale/...

But the installer wxPythonWIN32-2.5.1.5-Py23.exe is not creating this
directory neither putting any wxstd.mo files anywhere.

Oops, sorry. There is a bug in the script that builds the installer. I'll fix it for the next release.

Do I need to
use the unicode version instead?

No, the files won't be in that installer either.

···

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

In Tuesday, May 25, 2004, 3:29:34 PM, Robin wrote:

E. A. Tacao wrote:

In Tuesday, May 25, 2004, 2:18:06 PM, Robin wrote:

> E. A. Tacao wrote:

The Wiki <http://wiki.wxpython.org/index.cgi/Internationalization&gt;
says:

""" The wxstd.mo files contain the compiled string dictionaries for
wxPython. These files are distributed with wxPython and are stored
under the Python/Lib/site-packages/wxPython/locale/xx/LC_MESSAGES
directories (where xx is the language code). Just take them can copy
them in your locale directories. """

That was ok as for wxPython 2.4.2.4. Now I just upgraded to 2.5.1.5
(wxPythonWIN32-2.5.1.5-Py23.exe) and I couldn't find the wxstd.mo
files anymore. Where are they?

> They are now in .../site-packages/wx/locale/...

But the installer wxPythonWIN32-2.5.1.5-Py23.exe is not creating this
directory neither putting any wxstd.mo files anywhere.

Oops, sorry. There is a bug in the script that builds the installer.
I'll fix it for the next release.

Do I need to
use the unicode version instead?

No, the files won't be in that installer either.

Thank you, Robin. I placed the old 2.4.2.4 .mo files in
/site-packages/wx/locale/ here and most of the strings seem to be
working (at least the ones I'm using right now 8^)).

BTW, congratulations for you and for everyone involved in wxPython 2.5
for your good work!

Regards,

-- tacao

E. A. Tacao wrote:

Thank you, Robin. I placed the old 2.4.2.4 .mo files in
/site-packages/wx/locale/ here and most of the strings seem to be
working (at least the ones I'm using right now 8^)).

I've put a more current set of the locale files here:

http://prdownloads.sourceforge.net/wxpython/wxPy-missing-win32-locale-files.zip

Just unzip in the ../site-pacakges/wx directory.

BTW, congratulations for you and for everyone involved in wxPython 2.5
for your good work!

Thanks!

···

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

I'm trying to select the item in a wxListBox that the user right-clicks. No
matter where in the control I click, the wxListBox.HitTest method returns
"10". Not a tuple giving the id of the item selected and a flag value, as I
expected. Just "10". (I'm on Win2K, using wxPython 2.5.1.5.)

To demo this, just add this line:

self.log.WriteText('HitTest: %s\n' %
event.GetEventObject().HitTest(event.GetPosition()))

to the EvtRightButton method in ListBox.py from the demo.

Other than using HitTest, how do I determine what item to select in my
listbox when I right-click?

Thanks,
David

David Woods wrote:

I'm trying to select the item in a wxListBox that the user right-clicks. No
matter where in the control I click, the wxListBox.HitTest method returns
"10". Not a tuple giving the id of the item selected and a flag value, as I
expected. Just "10". (I'm on Win2K, using wxPython 2.5.1.5.)

wx.ListBox does not have it's own HitTest method so what you are getting is the generic (and apparently undocumented) HitTest from wx.Window. It returns a value from the set of wx.HT_* constants, you are getting wx.HT_WINDOW_INSIDE.

Other than using HitTest, how do I determine what item to select in my
listbox when I right-click?

You probably can't using wx.ListBox, but if you switch to a wx.ListCtrl you can do it. (wx.ListCtrl can be made to look list a ListBox with just some style settings.)

···

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