jim_imtech
asked on
Localization in my application displays wrong language
Hi,
My application is written in VS2005 (c++) and at this point supports English and Polish. As as when the language settings are changed, the application displays in the correct language.
The problem comes when the language is for example Dutch. Its displaying in Polish!!! Any ideas why?
My application is written in VS2005 (c++) and at this point supports English and Polish. As as when the language settings are changed, the application displays in the correct language.
The problem comes when the language is for example Dutch. Its displaying in Polish!!! Any ideas why?
How do you change the language settings, where it is displays, and how the language support is implemented?
ASKER
The language support is implemented using VS's rc files and I change the languagae settings from control panel - Region and Language. Infact if I select any other language (other than Polish and English), it is displayed in Polish as if default language is Polish.
I guess the Polish is marked as a default (fallback) language. Would you like English to be used when the language is not supported?
ASKER
Yes. I want default lang to be English. How to do that?
I am doing the internationalization differently. This way I am not very experience with doing that via .rc file. Anyway, I guess you should use the
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
for the English texts, and the
LANGUAGE LANG_POLISH | SUBLANG_DEFAULT
for the Polish. But I did not try.
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
for the English texts, and the
LANGUAGE LANG_POLISH | SUBLANG_DEFAULT
for the Polish. But I did not try.
ASKER
I am using
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
for polish
and
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
for English
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
for polish
and
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
for English
I do not know the rules for the fallback language. I only guess that it should be explicitly declared as LANG_NEUTRAL. It could be the case that the LANG_NEUTRAL was not found. This way Polish was used as it was found earlier than the English. Sorry, I do not know.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This was the only way I could get my application working