CurrentLanguage Property



 
The CurrentLanguage property contains the current language ID.


Syntax

    SiteCafe.LocaleManager.CurrentLanguage [=long]
    
Possible Values
    Long value that specifies or retrieves the ID of
    the current language.

    The property is read/write.
Remarks
    This property consists of a major and a minor language code. Use "& 1023" to receive the major language code or ">> 10" to receive the minor language code.
Examples
    The following example displays the complete and the major language code in alert windows.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    curLan = SiteCafe.LocaleManager.CurrentLanguage;
    alert("Complete code: " + curLan);
    alert("Major code: " + (curLan & 1023));
    alert("Minor code: " + (curLan >> 10));
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top