The use of bundle files allows you to modify labels as well as localize the language.
The following example shows how to use targeted labels for particular languages and how to swap the English label Read only of the cm_readonly property with the label Write protected.
You have worked through the steps that are described in Creating an Example Project in SAP NetWeaver Developer Studio .
<bundle file name>_<language>.properties
For example:
my-labels_de.properties
my-labels_es.properties
You also need a bundle file for the default language (usually English).
my-labels.properties
You can find the keys of existing properties in the configuration (parameter Key for Label).
For example:
For the German bundle file my-labels_de.properties:
cm_readonly=Schreibgeschützt
For the Spanish bundle file my-labels_es.properties:
cm_readonly=Solo lectura
For the default bundle file my-labels.properties:
cm_readonly=Write protected
Remember to use Unicode notation for umlauts and special characters. Below are some examples for German umlauts:
\u00E4 =ä
\u00C4 =Ä
\u00DF =ß
\u00F6 =ö
\u00D6 =Ö
\u00FC =ü
\u00DC =Ü
Do not use spaces in keys. Use underscores instead.
For example, my_metadata_extension.
Enter the name of the bundle file from step one with the package structure, but without the extension:
For example, Bundle File = com.<%your company name%>.km.resource.bundle.my-labels
In the Metadata Extension parameter, choose the metadata extension that you created in step five, for example, Metadata Extension = my_metadata_extension.
Enter the key used in the Key for Label parameter, for example, cm_readonly, and save your entry.
The label for the command is now displayed in the portal language on the interface. If no bundle file exists for the language set, the label is displayed in the language of the default bundle file (English).