LocaleManager Object



 
The LocaleManager object represents the system language.


Members Table

    The following table lists the members provided by the LocaleManager object.

    Members
    Collections Description
    KeyboardLayouts Contains the available touchscreen keyboard layouts.
    Properties Description
    DefaultLocale Default system language.
    IsKeyboardSwitchingEnabled Whether the touchscreen keyboard layout can be switched.
    KeyboardLayout Handle of the current touchscreen keyboard layout.
    LangID Current language ID.
    Methods Description
    Reset Resets the language ID.
    Events Description
    OnHotKeyPressed Fires when a hotkey has been pressed.
    OnKeyboardLayoutChange Fires when the touchscreen keyboard layout changed.
    OnLanguageChange Fires when the language changed.

Remarks
    This object is available through the main object SiteKiosk. Use the LocaleManager object to read and set the system language and to read the default language.

    Note that the path of a file using SiteKiosk objects must be allowed in the
    SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
    if it is not a browser skin file.
Examples
    The following example reads the LangID property and shows it in an alert window.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    alert(SiteKiosk.LocaleManager.LangID);
    </SCRIPT>

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top