Localization in Delphi

Posted:
January 17th, 2005, 1:10 pm
by Kalyan
I am currently working on Internationalization of an existing Delphi application. I got strucked up at one point. I am able to convert all the hard coded strings in the forms into locale specific using Localizer Tool. But in my application I have a constants.pas file in which all the constatnts are declared. How to convert all the constants defined in English to Locale Specific language. How to pick up the strings based on the system locale.

Posted:
January 17th, 2005, 3:00 pm
by Stefan
Do you want the application to be able to switch languages at runtime, or is it ok for you to compile two (or more) different executables?
- if two or more executables: just change the constants.pas entries to the specific language and recompile
- if you want to determin it runtime, use language DLLs (see Delphi help for that) :
Contents
Programming with Delphi
Creating international applications
Creating resource DLLs
Cheers,
Stefan