MoreMotion resource files have .res extension and exist under {APPLICATION_ROOT}/WEB-INF/MM-INF/resources/ directory.
The structure of a resource file is as follows:
<root>
<item id="PRODUCT_LIST">
Product List
</item>
<item id="COMMAND_SYNTAX">
The syntax of command %0
</item>
</root>
|
A resource file may contain multi-lingual resources using the following structure:
<root>
<item id="PRODUCT_LIST">
<en>Product List</en>
<de>Produkt-Liste</de>
</item>
<item id="COMMAND_SYNTAX">
<en>Syntax of command %0</en>
<de>Syntax des Befehls %0</de>
</item>
</root>
|
It is also possible to provide a separate file for each language. In that case the resource files must be provided under resources/<language-code>/ directories. For instance the resource files for resource unit "global" should be organized as follows.
WEB-INF/MM-INF/resources/en/global.res file
<root>
<item id="PRODUCT_LIST">
<en>Product List</en>
</item>
<item id="COMMAND_SYNTAX">
<en>Syntax of command %0</en>
</item>
</root>
|
WEB-INF/MM-INF/resources/de/global.res file
<root>
<item id="PRODUCT_LIST">
Produkte Liste
</item>
<item id="COMMAND_SYNTAX">
Das Syntax des befehls %0
</item>
</root>
|
|