Online Documentation for Advanced Localizer for RAD Studio VCL

Getting Started


This topic will guide you through the process of quick localizing your Delphi project. Follow the instructions below to learn how to use the EMS Advanced Localizer for RAD Studio VCL.


First of all you must install Advanced Localizer for RAD Studio VCL to the IDE. See Installation for the proper instructions. If the installation was successful, the Advanced Localizer for RAD Studio VCL tab will appear on the Delphi component palette with two components: QFormLocalizer and QLanguageSource. Drop a QLanguageSource component and a QFormLocalizer component onto the form. Set the Source property of QFormLocalizer to the already existing TQLanguageSource component (e.g. QLanguageSource1).

Note: If you don't specify this property, you will not be able to use the QFormLocalizer properly.


Now double-click the QLanguageSource component to activate the Language Source Editor. Click button btnAdd to add a language that will be used for localization. Specify the name of the *.lng file in the 'File Name' edit field, then specify the language name. If no file exists with the name you specified, it will be created. Set this language as active, so that the values from this language file will be applied to the components of the current form (select the language in the list and click button btnSetActive).


Close the Language Source Editor and double-click the QFormLocalizer component to activate the Form Localizer Editor. In this window you should specify the components and properties to be localized and set their localized values. All the components of the current form are available at the left of the window. Select a component to see the list of its properties, available for localization on the 'Property Names' tab. Check the component properties you want to localize to add them to the grid above. The columns of this grid correspond to the languages from the language list of the QLanguageSource component, the rows to the properties of the currently selected component. Click the cells with the property values twice and enter the new values. Repeat this for each component you want to localize. Click button btnSave to save the changes to the *.lng file and to apply the property values to the components of the parent form.