Solved

Localization in my application displays wrong language

Posted on 2013-11-05
9
278 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
 

Author Comment

by:jim_imtech
ID: 39623849
Yes. I want default lang to be English. How to do that?
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
levels for reporting 5 50
oracle query 15 63
Oracle SQL Select within a Where Clause 9 38
Oracle DATE Column Space 11 41
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
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…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now