Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Localization in my application displays wrong language

Posted on 2013-11-05
9
Medium Priority
?
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 29

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 29

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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

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

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 29

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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

670 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