[wxPython-users] Re: wxWizard, several question
Robin Dunn
robin at alldunn.com
Sat Aug 12 11:42:51 PDT 2006
Karsten Hilbert wrote:
> On Sat, Aug 12, 2006 at 10:26:41AM +0200, Franz Steinhäusler wrote:
>
>> bool wxWizard::ShowPage:
>> ...
>> bool hasNext = HasNextPage(m_page);
>> if ( btnLabelWasNext != hasNext )
>> {
>> // need to update
>> if (btnLabelWasNext)
>> m_btnNext->SetLabel(_("&Finish"));
>> else
>> m_btnNext->SetLabel(_("&Next >"));
>> }
>
> This snippet also tells us that untranslated button labels
> are very likely simply missing from the translation file
> (gettext catalog, I guess).
Or that the message catalogs are not being found at runtime. I recently
discovered that the Windows installers are putting the message catalogs
in the wrong directory structure on Windows. So Franz and Basil, if you
are seeing these buttons not getting automatically translated on
windows, please try the following:
1. Go to your site-packages/wx-2.6-msw-*/wx/locale dir.
2. Look in the subdir corresponding to your language code. If there is
a LC_MESSAGES dir there, move the wxstd.mo file up one directory level
and then remove the LC_MESSAGES dir. In other words, the structure
should be locale/<lang>/wxstd.mo, not locale/<lang>/LC_MESSAGES/wxstd.mo.
3. Try running a Wizard again without manual translation and see if the
buttons are now translated for you.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list