Editing Resource Files in the Translation Manager

From RAD Studio
Jump to: navigation, search

Go Up to Translation Manager in the IDE


After you have added languages to your project using the Resource DLL Wizard, you can use the Translation Editor to view and translate resource files in your resource DLL projects. You can translate resource strings directly in the Translation Editor, get translations of strings from the Translation Repository or add translated strings to the Translation Repository.

To edit resource strings:

  1. Open a project that includes resource DLL projects for several languages.
  2. In the Project Manager, expand nodes of the resource DLL projects to display the resource files that you can edit. The .dfm files stores resources of forms and .rc files contain string resources declared as string constants in resourcestring sections in your code.
  3. Double-click the resource file you want to edit. The Translation Editor opens and resource strings stored in the resource file are displayed in the table of the Translation Editor:
    • Click the cell that you want to edit and type the new text (translation) directly in the in-place editor.
    • Otherwise, right-click the cell and choose in the Edit menu the parameter to edit.
    • Also you can click the MultilineEditor icon Multiline editor icon on the toolbar above the table to open the multiline editor.
  4. Optionally, enter a comment in the Comment field.
  5. Optionally, set the translation status in the Status field.
  6. Click the SaveTranslation icon Save Translation icon on the toolbar above the table to update the resource file.

Tip: To display the original form or translated form, click the Show original form icon Show original form or Show translated form icon Show translated form icons in the toolbar above the table.

To add a resource string to the Translation Repository

  1. After editing a resource string in the Translation Editor, right-click the string that you want to add to the Translation Repository database.
  2. Choose Repository > Add strings to repository. The specified resource string is added to the Translation Repository database and can be viewed in the Translation Repository dialog box (by choosing View > Translation Manager > Translation Repository).

To get a resource string from the Translation Repository

  1. Open a project that includes resource DLL projects for several languages.
  2. In the Project Manager, expand nodes of the resource DLL projects to display the resource files in these modules.
  3. Click the resource file you want to edit. The resource strings stored in the file are displayed in the table of the Translation Editor.
  4. Right-click the resource string that you want to translate and choose Repository > Get strings from repository. If the Translation Repository contains only one translation that matches the selected resource string, it copies that translation into the target language column. If the Translation Repository contains more than one match for the selected resource string, its default behavior is to retrieve the first matching translation it finds.

Tip: To change this behavior, choose Tools > Options > Translation Tools Options, click the Repository tab, and change the Multiple Find Action option.

See Also