Solved

Localization in my application displays wrong language

Posted on 2013-11-05
9
282 Views
Last Modified: 2013-12-17
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?
0
Comment
Question by:jim_imtech
  • 5
  • 4
9 Comments
 
LVL 28

Expert Comment

by:pepr
ID: 39623672
How do you change the language settings, where it is displays, and how the language support is implemented?
0
 

Author Comment

by:jim_imtech
ID: 39623720
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.
0
 
LVL 28

Expert Comment

by:pepr
ID: 39623844
I guess the Polish is marked as a default (fallback) language. Would you like English to be used when the language is not supported?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:jim_imtech
ID: 39623849
Yes. I want default lang to be English. How to do that?
0
 
LVL 28

Expert Comment

by:pepr
ID: 39623858
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.
0
 

Author Comment

by:jim_imtech
ID: 39623863
I am using

LANGUAGE LANG_POLISH, SUBLANG_DEFAULT

for polish

and

LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US

for English
0
 
LVL 28

Expert Comment

by:pepr
ID: 39623876
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.
0
 

Accepted Solution

by:
jim_imtech earned 0 total points
ID: 39716024
I had to add a new rc file with Dutch lang (which was basically English text) to get over the problem
0
 

Author Closing Comment

by:jim_imtech
ID: 39723516
This was the only way I could get my application working
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question