how to localize a common dialog box

Public cai wrote:

I continued studying the problem and found out that for Windows,
- wxDirDialog actually calls SHBrowseForFolder()
- SHBrowseForFolder() is a Windows Shell API function
- seems that the Windows Shell API functions are not localized and
follow the language setting of Windows, meaning that if the user has a
German Windows installation (for example), she will see the common
dialogs translated to German. Also, this means that even when she uses
an English version of our program, she will still see the common
dialogs translated to German if she has a German Windows installation
(see: http://forums.msdn.microsoft.com/en/netfxbcl/thread/40fae6c6-1afc-4a4d-8638-88cdf69c5ee6/)

The Windows on my machine is English, I always see these common
dialogs in English (even when running a German version of our program)

You are correct.

···

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

Hello all,
so there is not way to get dialogs translated?

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/Re-how-to-localize-a-common-dialog-box-tp2366032p4385483.html
Sent from the wxPython-users mailing list archive at Nabble.com.

Nando Beifiori wrote:

Hello all,
so there is not way to get dialogs translated?

Do you mean, automatically? No, you have to do the translations
yourself, or hire someone to do it. After you have the translated
strings, there are a number of ways to substitute the translations when
you create the dialog:
    Internationalization - wxPyWiki

···

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

Not without changing the locale settings of the system. For the most part the common dialogs are provided by the system, not wx, and so their content and where they pull their label text from is controlled by the system, not wx.

OTOH, if you create your own dialog classes and use the supported i18n techniques then the text will be pulled from your translated language catalogs based on the current wx.Locale object, and not solely on the system's current locale settings.

http://wiki.wxpython.org/RecipesI18n

···

On 5/10/11 12:51 PM, Nando Beifiori wrote:

Hello all,
so there is not way to get dialogs translated?

--
Robin Dunn
Software Craftsman