Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alternate Language 2

Status
Not open for further replies.

yacyac

Programmer
Jul 29, 2002
78
US
I have a large program that is now going to be issued in another spoken language. All of my .caption= and .text= have to be changed to the alternate language (along with a few other oddities).

If I had known this from the beginning I could of setup a language array. The easiest solution I can come up with now, is to read each .frm file and do a replace A with B.
The problems I see with that is I end up with two separate programs and anytime I make a change to the English program - I have to rerun replace A with B

Does anyone know of an easier way of doing this?
 
You need to look at resource files and the LoadResString function. If you do the search & replace thing then you have two separate systems and attempting to manage revisions on two separate sets of code can quickly become a nightmare.

Doing a retrofit to a resource file based approach is still a lot of work but at least it leaves you with a single code base to maintain.
 
Fantastic - just what I was looking for. Only problem is for some reason I do not have "VB6 Resource Editor" in my Add-In Manager"

Anybody know what I have to do - reload VB6?
 
I've had this recently. Just close VB, (re)register

C:\Program Files\Microsoft Visual Studio\VB98\Wizards\resedit.dll

and restart VB. Resource editor should now appear in the Add-in Manager
 
Strongm - I have to give you a star for that one and for all of the other tidbits of yours that I have used in the past - what a wealth of information, though your "regular expressions" confuse me to no end. Like the saying goes - everything is confusing until you understand it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top