Show TOC Start of Content Area

Process documentation Translation of the Texts  Locate the document in its SAP Library structure

Purpose

Properties files cannot be translated immediately because they are generated during the creation of the Web Dynpro project. When creating language-dependent text elements, different S2X files with the extension .xlf are generated for each Web Dynpro component  Within a Web Dynpro component, S2X files are created when you

By default, the application development fills these S2X files with the context infomation relevant for the translation using the S2X Document Editor.

For the translation process, you must manually create the corresponding language-specific S2X file from scatch and process it . The Web Dynpro tool S2X Document Editor is used to translate language-dependent text elements for the resource bundle of a Web Dynpro component and the properties files.

Caution

Note that you do not process the properties files, because they are always generated using S2X files and therefore are overwritten.

Process Flow

...

The following steps describe how to create language-specific S2X files:

       1.      Copy S2X file
To translate the relevant texts contained in the S2X files into a specific language, you must use the Package Explorer of the SAP NetWeaver Developer Studio to copy the requested S2X file in the directory /src/packages using the right mouse button.

       2.      Insert S2X file with language-specific name
Insert the S2X file in the same directory with the additional extension: _<language ID according to the ISO standard 639> after the file name.
Example: If you want to translate the S2X file of the Web Dynpro component <Web Dynpro component> for the view MainView
<View Name>.wdView.xlf into English, you must enter the file name as follows: <view name>.wdView_en.xlf.

Caution
You must enter the language ID in lower case and must not modify the original name of the S2X file except for this language-specific addition. The language-specific addition is a language ID according to the ISO standard 639. For additional information, refer to the World Wide Web.

       3.      Open the S2X file with a text editor and change attribute source-language of element file to the target language id.

       4.      Store the metadata to save the newly created file. Navigate to File in the uppermost toolbar and select Save all metadata or navigate into the second toolbar and select the icon This graphic is explained in the accompanying text Save all metadata.

       5.      Open the file in the S2X Document Editor for processing.

Caution

Only if you process the newly created file in the S2X Document Editor, the encoding tables that are required for the translation are available and Unicode-enabled.

       6.      After translating the corresponding texts, you save the metadata to save the modifications in the file with the translated texts. Navigate to File in the uppermost toolbar and select Save all metadata or navigate into the second toolbar and select the icon This graphic is explained in the accompanying text Save all metadata.

Note
To generate the corresponding properties file, choose Reload in the context menu of the Web Dynpro project.
A dialog box appears. Choose Reload+Rebuild to confirm your entries. Choose Deploy New Archive and Run in the context menu to redeploy the Web Dynpro application. Only then the system creates the new properties file and the Web Dynpro application can be called in the appropriate language.

Result

You have created a language-specific S2X file that can be used for the generation of an additional language-specific properties file. Therefore, also this resource bundle can be provided at runtime of the Web Dynpro application.

  

  

 

End of Content Area