Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / December 2004

Tip: Looking for answers? Try searching our database.

Internationlization of MFC application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Mohandas - 22 Dec 2004 16:35 GMT
Our application UI is developed using MFC in Visual C++.  To support
different languages, do we have to maintain  seperate resource file for each
language? Can we store the dialog strings like the text in a label, text in
a button in a seperate text file and somehow load in it? So that we can send
the text file to translation company and have it translated.

We looked at storing all the text in the dialog to the string table of
resource file, then set the text when the InitDilaog() method is called, by
loading it from the string table, but that seemed to be a lot of work
becuase we have more than 100 dialogs to do this.

In other UI i have used like Motif you can specify in the resource file
like,
Dialog1.Ok = "OK"
Dialog1.Cancel = "Cancel"

What would be the best approach using MFC and the simplest way to do this?

Thanks,
David
Mihai N. - 23 Dec 2004 04:42 GMT
> So that we can send
> the text file to translation company and have it translated.
Any localization company should be able to deal with RC files.
Don't look for translation company.

> We looked at storing all the text in the dialog to the string table of
> resource file, then set the text when the InitDilaog() method is called, by
> loading it from the string table, but that seemed to be a lot of work
> becuase we have more than 100 dialogs to do this.
Bad idea.
You need resizing, changing fonts, maybe alignment, etc.
Also, translating in RC gives you context (and better quality) than just a
bunch of strings.
Really, the results are better with RC files.

> What would be the best approach using MFC and the simplest way to do this?
Provide RC files for localization + resizing
Then compile (rc.exe /l 0x411 /c 932 ) and link (/dll /noentry).
From the main application load the language DLL, then AfxSetResourceHandle
See http://www.microsoft.com/globaldev/tools/wrapp.mspx

Really, this is what is called "best practice."

Signature

Mihai
-------------------------
Replace _year_ with _ to get the real email


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.