Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have dialog based application that have some options to choose the Region. For Example US, UK, Korea. When user choose an Option than the dialog box labels and buttons message should be display in that language.
I am not working on it and don't have any idea...
Please give me some idea about how to do this? Is there any dlls for language ??

Thanks in advance.
Posted

Have a look at these articles to get some help:
Library for MFC applications localization using resource-only DLLs[^]
User Interface Localization with the Compact Framework[^]

Surely, do wait for some C++ expert to guide you further.
 
Share this answer
 
Comments
ShilpiP 16-Mar-11 9:14am    
Hi Sandeep,
Thanks for the links, I will update you after implementing the same :)
Have my 5.
Sandeep Mewara 16-Mar-11 9:17am    
Sure. Would be glad if it helps. :)
This code may help you

 LOGFONT lfIcon;
 VERIFY(::SystemParametersInfo(SPI_GETICONTITLELOGFONT, sizeof(lfIcon), &lfIcon, 0));
 lfIcon.lfWeight = FW_NORMAL;
 lfIcon.lfItalic = FALSE;
 VERIFY(m_pPaintManager->GetItemMetrics()->m_font Normal.CreateFontIndirect(&lfIcon));
CFont fntNormal;
fntNormal.CreateFontIndirect(&lfIcon );

this.SetFont(&fntNormal);


this code set the font of local machine to your dialog may hepl you.
Just try i have one more solution.
 
Share this answer
 
v2
Comments
ShilpiP 16-Mar-11 9:15am    
Didn't get your point actually. In my MFC application, if I change the language locale than my label and button text changed ?? quite confused.
[no name] 17-Mar-11 0:50am    
you can set the created font to the label and button to set the local language.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900