browserLanguage property

[This documentation is preliminary and is subject to change.]

Retrieves the current language.

Syntax

HRESULT value = object.get_browserLanguage(BSTR* p);

Property values

Type: BSTR

one of the values in the Language Codes.

ValueCondition

 

Remarks

Note  This property does not indicate the language or languages set by the user in Language Preferences, located in the Internet Options dialog box.

In Microsoft Internet Explorer 5 and later, the IOmNavigator::browserLanguage property reflects the language of the operating system regardless of the installed language version of Windows Internet Explorer. However, if Windows 2000 MultiLanguage version is installed, the IOmNavigator::browserLanguage property indicates the language set in the operating system's current menus and dialogs, as found in the Regional Options of the Control Panel. For example, if you install a Japanese version of Internet Explorer 5 on an English (United Kingdom) operating system, IOmNavigator::browserLanguage would be en-gb. If you install Windows 2000 MultiLanguage version and set the language of the menus and dialogs to French, IOmNavigator::browserLanguage would be fr, even though you have a Japanese version of Internet Explorer.

In Microsoft Internet Explorer 4.0 and earlier, the IOmNavigator::browserLanguage property reflects the language of the installed browser's user interface. For example, if you install a Japanese version of Internet Explorer on an English operating system, IOmNavigator::browserLanguage would be ja.

The IOmNavigator::browserLanguage property returns the language of the operating system and applies it to Metro style apps using JavaScript.

See also

Reference
IOmNavigator::systemLanguage
IOmNavigator::userLanguage

 

 

Build date: 6/12/2012

Community Additions

Show: