[wxpython-users] Language of PrintPreviewDialog

Jürgen Kareta python at kareta.de
Fri Apr 4 12:32:37 PDT 2008


Robin Dunn schrieb:
> Jürgen Kareta wrote:
>> Hello,
>>
>> the printpreview dialog seems to use always the English language 
>> instead of the default localisation of the OS
>> (on w2k, py 2.5.1 wxpy 2.8.7.1). Is there any way to adjust that ?
>
>
> The PreintPreview is generic wx code, so the translated strings should 
> be in the wxstd.mo files, so that is where you should start looking 
> for the source of the problem.  Check if you are doing anything that 
> might prevent that catalog from being loaded.  Does a wxstd.mo exist 
> for the default language in your locale?  Etc.
>
>
Hi Robin,

thanks for your replay. I have a wxstd.mo file for my default language: 
German. Checked the german  .po file in the SVN repository and  also 
decompiled the  wxst.mo file on my machine  with poedit. In both cases I 
found the right translations for all words related to printing.

Tried  the demo and the printing example of  chapter 17 of wxPiA to make 
sure that I don't do anything to prevent the catalog from being loaded. 
Same result. I should mention that all other dialogs like print dialog, 
page setup dialog and print setup dialog appears in German.

Currently I have the wxpython library installed on three machines (one 
XP, two W2K) and I remember the problem at least for the last three or 
four releases of wxPython. If I count the py2exe compiled programms 
too,  then I can admit the problem for at least a dozen of diffent 
machines (either XP or W2K).

Using wx.Locale doesn't change anything, but that makes sense as it is a 
native dialog of the OS. Maybe anyone other whoms default language isn't 
English can sprint in to confirm the behavior ?

While I'm not that brilliant C/C++ programmer I like to analyse it 
further. Robin could you please be so kind to give some hints where I  
can find the sources of the underlying wx code (directory of SVN or 
topic to search for or even better a file name) ?

Thanks
Jürgen



More information about the wxpython-users mailing list