Localizing Applications

From Delphi for PHP Documentation Wiki

Jump to: navigation, search

Summary: Describes how to localize your application.


You can use the "Internationalization Wizard" to localize the strings in your application for translation to specific languages. The "Internationalization Wizard" does the following:

  1. Collect your project files.
  2. Allow you to select which languages to use for localizing your application.
  3. Run   gettext() over your source files.
  4. Build the required folder structure with the generated files.
Note:

You can run the "Internationalization Wizard" as many times as you want over your source code and it will update your resource strings.

To localize a custom component for specific languages
  • Choose Tools Image:pathPDF.jpg Internationalization Wizard.
  • Step through the "Internationalization Wizard" to step 3 to the "Languages to Localize" list.
  • Check each language to which you want your application translated.
  • Click "Next", then "Finish" to run the wizard.

The wizard creates a local folder in your project folder, with subfolders containing the resource strings for each language.

Note:

To localize the visual interface for your application, use the Language property on the each  Form . For this wizard to work, you must enclose the strings you want localized into a call to the  gettext() or  _() function in the source code. For example, "$this-> Button->Caption = _("Localize this string");".

Overview of Deploying PHP Applications Deploying Applications Developer's_Guide_::_Resource_strings
Personal tools