Localization in Delphi

Please discuss general Delphi programming topics here.

Localization in Delphi

Postby Kalyan » January 17th, 2005, 1:10 pm

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.
Kalyan
Member
Member
 
Posts: 1
Joined: January 17th, 2005, 12:40 pm

Postby Stefan » January 17th, 2005, 3:00 pm

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
User avatar
Stefan
Moderator
Moderator
 
Posts: 128
Joined: September 27th, 2004, 9:40 am
Location: Tilburg, The Netherlands


Return to Delphi Programming

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron