org.pentaho.reportdesigner.lib.client.i18n.TranslationManager
The translation manager can be used to load translations using keys. Regular java property files are used as the underlying storage mechanism (see /res/Translations.properties).
The values in the property file use standard MessageFormat syntax to specify parameters.
The common case to load mnemonics and mnemonic indices is simplified by extending the syntax to use underscores:
SaveReportCommand.Text=_Save
The mnemonic will be set to 'S' and index to 0.
The values can be access using the TranslationManager:
String text = TranslationManager.getInstance().getTranslation("R", "SaveReportCommand.Text"); int mnemonic = TranslationManager.getInstance().getMnemonic("R", "SaveReportCommand.Text"); int displayedMnemonicIndex = TranslationManager.getInstance().getDisplayedMnemonicIndex("R", "SaveReportCommand.Text");