Multiple Language Support for VB Projects  
Author Message
Fred Herring





PostPosted: Visual Basic General, Multiple Language Support for VB Projects Top

vb.net 2003

I currently maintain an english and a spanish version of my vb projects. In the near future, I will also release a Portuguese version. Aside from help files which are document or html based in different lanuages, I am faced with needing to support error messages,help messages, button names, and menu names inside my actual vb code.

I am starting to consider creating an Excel file that my program can read on startup which enables an array of string variabiles to be set to the appropriate text message in the proper language. I then use the variable names for all my Exception messages, etc. What confounds me however is how to work with main and context menues. How can I have individual selections in a main or context menu use string variable names.

If someone has a better way to deal with multiple language support for net projects, please let me know.

Thanks,

Fred




Visual Basic17  
 
 
Ken Tucker





PostPosted: Visual Basic General, Multiple Language Support for VB Projects Top

Using an excel spread sheet is not the the way to go. Check out this article.

 
 
Fred Herring





PostPosted: Visual Basic General, Multiple Language Support for VB Projects Top

Thanks, there is always something new to learn. I had no idea vb had a toggle switch for languages.So if I understand correctly, I can set a form for a particular language and then set the properties of the controls/menus for that form to the correct syntax for that language.

I wish to be able to easily create a build for each of my three languages from a single code set. I am not interested in having the code detect the language of choice of the target computer. As long as I can set a switch to control the language used for a compile/build, this will work great.

Thanks,

Fred