Localizing Applications
From Delphi for PHP Documentation Wiki
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:
- Collect your project files.
- Allow you to select which languages to use for localizing your application.
- Run gettext() over your source files.
- 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. |
- Choose Tools
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 |

