
You have created messages in the message pool of a Service or UI component.
More information: Programming User Messages
Internationalization is a feature of mobile applications that display messages and other text strings in the selected language.
Language support for mobile applications uses the Java technology with resource bundles. The resource bundle contains the text strings that are displayed by the mobile application. Language for resource bundle evaluation is defined by the logon language of the mobile user according to the language (locale) settings.
The Java class PropertyResourceBundle, a class derived from the class java.util.ResourceBundle, serves to isolate the language-dependent resources (text elements) and to store the contents in language-specific properties files. You can develop mobile applications that can be easily internationalized and translated into several languages. At runtime, the relevant properties file is loaded dynamically, depending on the language ID of the current user.
Internationalization is supported for the Service and UI components of a mobile application. You can create messages in the message pool of a Service and UI component. Internationalization allows you to translate these messages into different languages.
The following code snippet allows you to retrieve a particular message key and the text from the message pool. getResourceBundle() is generated in the view controller code.
/**
* Event handler [onActionButtonClick]
*/
public void onActionButtonClick (Event wdEvent) {
//@@begin onActionButtonClick(ServerEvent)
//INVALIDEMPLOYEE is the message key in the message pool of the EmployeeAppComp UI Component
String message = getResourceBundle().getString(IEmployeeAppCompMessages.MSG_KEY_INVALIDEMPLOYEE);
WDLite.showStatusMessage(0,message;
//@@end
}