Show TOC Entering content frame

Procedure documentation Creating Language Resources Locate the document in its SAP Library structure

Use

A language resource contains all of the language-specific elements of an Internet service and enables you to make your application multilingual. Compared with hard-coded text in the HTML template, it also makes it easier for you to understand and maintain your source code.

For each language-specific text in your Web interface, you insert a placeholder into the HTML template (similarly to text elements in an ABAP program). The actual texts are maintained through the theme parameters with the same name. At runtime, the ITS recognizes the placeholders for each template and replaces them with texts in the appropriate language.

Prerequisites

You must already have created the HTML templates for your Internet service.

Procedure

Adding Placeholders to an HTML Template

       1.      Open the relevant template.

       2.      Enter the placeholder for the language-specific texts in the HTML source code.

Example 

Use the following syntax: `#Placeholder`

Suppose we defined three placeholders (`#windowtitle`, `#text001` and `#action`) in the source code.

This graphic is explained in the accompanying text

Entering Language-Specific Texts

       1.      Double-click the theme.

The system displays the theme parameters.

       2.      Choose the Compare parameters icon.

Those place-holders for all the templates used by the service that have already been maintained are added to the parameter list.

       3.      Enter the language-specific text in the original language as a value for each parameter.

This graphic is explained in the accompanying text

Result

The theme parameters are now part of the service. They are translation-relevant parts of the SAP Repository object, and as such will enter the translation workflow when you release the service.

When you start the service in the original language, the texts appear in the relevant language.

This graphic is explained in the accompanying text

Note

If there is no translation of the language-specific texts in the logon language, no text is displayed when the user executes the service.

 

Leaving content frame