I tried to use localization as provided by wxWidgets. I use the code from the "internat" sample and it works for me (except that I tried to use the .mo file from the ressource which didnt work for me - but thats another issue).
If I set the wxLanguage variable manually eg to wxLANGUAGE_ENGLISH it works.
But I cant seem to be able to read the system language.
I installed the windows language package "english-US", activated it and also set the Current system locale to "English (United States)" in the "Administrative language settings". After that I restarted the system. (see windowsSettings.png)
I took every function I found for language identification and got them out (see languages.png).
The only function that was able to detect the current display language was the C++ native function "GetSystemDefaultLocale".
Any hints how I can accomplish this with wxWidgets functions? Do I need to change the language for the user somewhere for wxWidgets (and c++ functions respectively) to notice?
Thanks
Natu
EDIT:
If I use the following command in an elevated powershell to set the default language for the user explicitly, wxWidgets does recognize the language. (But that even uninstalls my other languages and I cant expect other users to have used it):
Code: Select all
Set-WinUserLanguageList en-US -Force