Localizing Delphi Applications

Localization is the process of converting an application so it functions in a specific locale. At a basic level this requires translation of all text that a user interacts with - in the form of menu items, button captions, prompts etc - to the locale language. We present a simple technique for accomplishing this. This technique has the advantage that it does not require separate versions of all or part of the source code to be maintained. Most user interface elements can be translated to a new target language without recompiling the application. To use this technique follow the steps listed below

Usage: Run the demonstration application, Localizer.EXE. See how various user interface elements get localized when you select one of the three available languages - English, French or Tamil. Now open Localizer.TXT and edit its entries to provide localizations in your own language. Save the edited file under a suitable name, e.g. Turkish.TXT and then lock it using ETLLock. Run Localizer again and verify that your new localizations are working correctly.

Now examine the source code in Localizer.dpr and adapt it to your own needs if necessary.

Download
Jump To...

Colophon