Sign in to follow this  

How to compile executable in multiple languages?

This topic is 4050 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm developing an application in Portuguese, which will have to be later translated to English. But instead I would like to have the option of, in the Menu, selecting an option like "Language - Italian", and every text resource in the executable would instead be rendered in that tongue, in this example, Italian. I see that WinACE does exactly what I described. I have Lua scripts available in this project, if I don't find any other solution I'll probably just write a script that alters all the controls on the active dialog to the defined language. It won't be elegant, but it'll work. Does anyone know how to accomplish this? Have multi-tongue resource files perhaps? Btw, I'm using Visual Studio 2003 7.1, C++, no MFC (raw WinAPI). [Edited by - Prozak on November 9, 2006 11:53:39 AM]

Share this post


Link to post
Share on other sites
Yeah that's pretty much it. Keep all of your strings in your resource file, one section for each language. If the user selects a language, you just change to the appropriate resource.

It's one of those problem where the code is simple, but putting it to good use is tedious.

As far as any error messages, add in unique IDs for each message, so that the user understands what went wrong, but if you want to help them with their problem, you don't have to learn a new language :)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
if you have to keep things platform-agnostic, you might as well simply use a separate XML file that contains all English strings used in your application, future translation would then simply boil down to copy your english-language XML file and have someone translate it to whatever language, so that you can simply chose the appropriate language file at startup/runtime

Share this post


Link to post
Share on other sites

This topic is 4050 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this