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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

doing a program in 2 languages 1

Status
Not open for further replies.

Gigatech

Programmer
Jul 12, 2000
80
CR
What is the best way to make a program in two different languages (English and Spanish for example) without make two different applications ?

Thanks.
 
Look for multi-lingual components (on the Delphi Super Page or Torry's) that will help you change the text appearing on the forms and in the messages of an application.

They will let you change the language anytime at run-time; it's very impressive!

Of course, you have to enter all the translations for all the texts into a file or properties of the multi-lingual component.

Cheers
 
If you want to modify the messages delphi uses to another language: (this could be the 2 type application)

Look for the file consts.dcu and rename it to consts.old You wil find this in the |Delphi\LIB directory.

In delphi 3 look for consts.int, modify the text and create a new unit consts.dcu.

In Delphi6 look for consts.pas and and modify it to suit your needs.

All your altered messages will be in the format and language you want without one single line of code


Steven van Els
SAvanEls@cq-link.sr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top