Localizer Editor UI
- 3 minutes to read
The Localizer Editor is used to translate resource strings that will then be used for application localization.
The Localizer Editor provides a grid containing a list of resource strings for all Developer Express products.
The first grid band – Resource Strings – contains the following columns:
Resource String Name – lists resource string identifiers.
Original Value – lists resource string values as they were defined in Developer Express libraries.
Other bands are created dynamically for each language specified in the editor. A language band contains the following columns:
Resource String Value – lists resource string values that correspond to the specified language.
Translated – provides check boxes indicating that resource strings are translated. A check box is checked automatically if the corresponding Resource String Value item has been changed. To restore the default value (as it was specified in a Developer Express library), uncheck the check box.
The Localizer Editor‘s main menu allows you to perform the following operations:
File:
New – creates a new resource strings file.
Open – opens an existing resource strings file.
Reopen – opens a previously opened resource strings file.
Save or Save As… – saves localized resource strings to .INI and .PAS files (a .PAS file contains custom resource strings).
Build Resource File… – saves localized resource strings to a .RES file. This file is a storage alternative to .INI and .PAS files. The Localizer Editor allows you to convert the content in the .INI format into the .RES format. For this purpose, open an .INI file in the editor, and then save the content in the .RES file using this menu.
Close – closes a file.
Exit – closes the Localizer Editor.
View:
- Expand All or Collapse All – expands or collapses all rows in the grid.
Languages:
- Add… or Delete… – invokes the Choose Languages dialog. Use the dialog to add or remove languages to / from the file.
Options:
- Save As Unicode – if checked, the content is saved in the Unicode format. Otherwise, resource strings are stored in the ANSI format. The Unicode format is supported by platforms starting from version Delphi 2009. Platforms prior to Delphi 2009 only support the ANSI format.
By default, the check box is unchecked. To save the file as Unicode encoded, make certain that the check box is checked.
Note that this option is ignored if resource strings are to be stored in the .RES file.
- Autosave Custom Resource Unit – if checked, custom resource strings are automatically saved to a .PAS file.
Custom Resource Strings:
Add – adds custom resource strings to the file. If Add is clicked for the first time, the editor creates a Custom Resource Strings group row, and adds a blank data row, in which you can enter a custom resource string identifier, and the corresponding values for each language.
Delete – removes custom resource strings from the file.
Build Custom Resource Unit… – saves custom resource strings to a .PAS file. This is only used if the storage for localized resource strings is an .INI file.