close

Filter

loading table of contents...

Site Manager Developer Manual / Version 2207

Table Of Contents

4.8.2 Localize Commands

You can define some attributes for your command in a properties file. The attributes are shown in the GUI and the names must follow the scheme:

<command-name><suffix>=<value>

<Suffix> can take the following values:

  • Label: The text which is shown in the menus.

  • MenuItemLabel: The text of a menu item.

  • Image: The icon which is shown in the toolbar.

  • ToolTip: The text which is shown as a tooltip.

  • Mnemonic: The shortcut which can be used to start the command.

Please notice that <command-name> is not the class name of your command but the name registered at the CommandManager. So it is possible to register several commands with the same name.

Example:

You have created a command called MakeCheaper:

MakeCheaperMenuItemLabel=Reduce Price
MakeCheaperToolTip=Reduces all prices by 10 percent
MakeCheaperImage=/com/customer/cap/reduce.gif

Example 4.12. Localize command


The name of this file is <Myname>.properties. You can integrate it using the Bundle element of the editor-startup.xml file. The file name must be entered without file extension. It must appear at the right position of the classpath.

Example:

 <Editor>
	<Locale language="de" country="DE"/> 
	<Bundle name="com/customer/cap/mybundle"/>
</Editor>

Example 4.13. Integrate bundle


Localization of the attributes can be done as described in Section 4.10, “Localization”. Simply add the language suffix after the <mybundle> part of the name.

Example:

The name of the french version would be:

mybundle_fr.properties

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.