@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface PluginResourceBundle
<?xml version="1.0" encoding="UTF-8"?>
<translation>
<key value="key_name">
<comment>key description</comment>
<val lang="en_US">en_US_translation</val>
<val lang="de_DE">de_DE_translation</val>
<val lang="fr_FR">fr_FR_translation</val>
<val lang="ja_JP">ja_JP_translation</val>
<val lang="nl_NL">nl_NL_translation</val>
</key>
</translation>
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage(java.lang.String messageKey)
Get the internationalized message corresponding to the specified key.
|
java.lang.String getMessage(java.lang.String messageKey)
messageKey
- The key of the message which is accessed.
In the following translation XML sample, the "messageKey" that you can be used
to get the message translation is "key_name":
<?xml version="1.0" encoding="UTF-8"?>
<translation>
<key value="key_name">
<comment>key description</comment>
<val lang="en_US">en_US_translation</val>
<val lang="de_DE">de_DE_translation</val>
<val lang="fr_FR">fr_FR_translation</val>
<val lang="ja_JP">ja_JP_translation</val>
<val lang="nl_NL">nl_NL_translation</val>
</key>
</translation>
java.lang.ClassCastException
- if the object found for the given key is not a string© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.