Creating Language Resources 

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.

Use the following syntax: `#Placeholder`

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

Entering Language-Specific Texts

  1. Double-click the theme.
  2. In the Parameter name column, enter the name of the placeholder (without #) and enter the text in the original language as its Value.

Result

The theme parameters are now part of the service. They are translation-relevant parts of the R/3 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.

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