HP Anywhere 10.02 API Reference
Show:

HPA.I18n Class

Module: HPA

Available since HP Anywhere 10.00

Localization - used for translating app strings and text according to the device's locale (navigator.language).

The Localize method is used for retrieving the translation of the given key.

Usage example:

 var userNameLabel = HPA.I18n.localize( "app.label.username" );
 myForm.setUserLabel(userNameLabel);

Methods

Methods

localize

(
  • key
)
String

Get the translated string for the given key according to the current device locale.

Parameters:

Returns:

String: translation for the given key