Show TOC

Background documentationWhat's New in Enhancement Package 1 SP5 Locate this document in the navigation structure

 

Composition
Visual Composer

Change

More Information

Translating Model Texts

When using Visual Composer in a Web browser, you can now access a tool that helps you translate model texts into other languages. You can use the tool to create new translation files for each language into which you want to translate the model texts. After creating a translation file, you can open it and translate the text strings into the target language using the translation tool editor.

Note Note

When translating model texts in Visual Composer in SAP NetWeaver Developer Studio, you should continue to use the standard Developer Studio .xlf file translation tools.

End of the note.

Before you begin, make sure that a masterlanguage.xlf file exists for the model. To create the masterlanguage.xlf file, either validate or deploy the model in the Deploy task panel.

Note Note

The masterlanguage.xlf file cannot be modified in the translation tool. To modify it, you must change the text within the model itself (for example, change the name or label of a model element).

End of the note.

Access the translation tool by first opening the model whose texts you want to translate and then choosing   Tools   Translate Model  . The translation tool opens, in which you can create and delete translation files, download and upload translation files, and open translation files for editing.

Select the translation file that you want to modify, and choose Edit. The translation tool editor opens, providing the following options (tabs):

  • Edit File: Displays a list of all the master language texts in the selected translation file and their text classification types. For each text string, you can enter the relevant string in the target language. You can also choose whether to display all texts, or only those texts that have been added or changed in the master language file since the translation file was last deployed.

  • File Header: Shows information about the selected translation file, for example, the master language and the source (current) language.

  • View File: Shows the contents of the selected translation file in XML format.

Note Note

Instead of modifying the texts in the translation tool editor, you can download the translation file in .xlf (XML) format or .properties (key-value pair) format, enter the translations for the texts in a standard text editor, and then upload the modified file. If you upload a file in .properties format, an .xlf file with the same name must already exist for the model on the Visual Composer server.

End of the note.

To view the model with the translated strings, you must first deploy it. You can then view the translated runtime from a Visual Composer machine whose locale is defined for the target language.