Changing Labels for Commands
The use of bundle files allows you to modify labels as well as localize the language.
The example below shows how you use suitable labels for different languages and how you swap the English label Details (for the command that calls up the Details dialog box) with the label Properties.
You have worked through the steps that are described in Creating an Example Project in SAP NetWeaver Developer Studio.
...
1. In the SAP NetWeaver Developer Studio, create a bundle file for each language. Use a text editor to do this. Note the following conventions:
<bundle file name>_<language>.properties
For example:
my_UICConsts_de.properties
my_UICConsts_es.properties
You also need a bundle file for the default language (usually English).
For example, my_UICConsts.properties
2. In each of these files, create an entry in the format key =label.
For example:
For the German bundle file my_UICConsts_de.properties:
test_properties=Eigenschaften
For the Spanish bundle file my_UICConsts_de.properties:
test_properties=Propiedades
For the default bundle file my_UICConsts.properties:
test_properties=Properties

Do not use spaces in keys. Use underscores instead.
3. Build and deploy the development components that contain the bundle files (see Building and Deploying Development Components).
4. In the portal, choose System Administration → System Configuration → Knowledge Management → Content Management → User Interface → Commands → UI Command and create a new command:
For example:
Alias =
companyname_Properties
Bundle File =
com.<%companyname%>.km.resource.bundle.my_UICConsts
Key for Label = test_properties
Java Class =
com.sapportals.wcm.rendering.uicommand.cm.UIDetailsCommand

We recommend that you use a prefix for the aliases of your commands. This makes it easier for you to distinguish between commands contained by default and commands that you have created yourself.
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).