This document covers the following topics:
Two languages are supported by default: "en" for English and "de" for German. The Language Manager can be used to define additional languages.
The concept of the multi language management is described in Multi Language Management in the Natural for Ajax documentation. It is recommended that you read this information before you proceed with the information below.
When you invoke the Language Manager, the following dialog appears.
To invoke the Language Manager
In the ProjectExplorer view, select the project for which you want to invoke the Language Manager.
Invoke the context menu and from the
menu, choose .When you define a new language, the required directories and certain files holding textual information will automatically be created in all existing projects.
To define a new language
In the text box of the Abbreviation drop-down list box, enter the abbreviation for your new language.
Choose the
button.The following information is shown.
Translate all literals that are shown on the Literals tab.
Choose the Messages tab.
Translate all strings that are shown on the Messages tab.
Each "\n" in a string stands for a line break.
"REPLACE" is a placeholder for a variable. It must not be deleted. During runtime, the corresponding value will be used. Example:
Language 1: | \nHint for input: REPLACE.\n\n\n |
Language 2: | \nHinweis für die Eingabe: REPLACE.\n\n\n |
Choose the
button at the bottom of the dialog.The directories and files for the specified language abbreviation are created. A message appears in the status bar of the Language Manager.
If you want to find out which directories and files were created, click the message in the status bar.
You can modify the text for literals and messages that you have specified when you have defined a new language (see above).
To open an existing language
In the text box of the Abbreviation drop-down list box, enter the abbreviation of an existing language.
Choose the
button.A dialog appears showing the currently defined texts for the literals and messages.
Edit the required texts on the Literals and/or Messages tab.
Choose the
button at the bottom of the dialog.The texts are written to the files which have been created for the specified language abbreviation. A message appears in the status bar of the Language Manager.
If you want to find out which files were affected, click the message in the status bar to display a dialog.