httpGetLanguageId()

The function checks the stated client connection and returns a matching OaLanguage enum value. This function provides the same functionality as httpGetLanguage(), but uses the new OaLanguage enum as return value.

Synopsis

OaLanguage httpGetLanguage(int idx);

Parameter

Parameter Description
idx index of the client connection

Return value

Returns the matching OaLanguage enum value on success and -1 in case of an error.

Error

No index has been stated.

Description

The function returns the best matching OaLanguage enum value for the stated client connection. To determine the language value the "Accept Language" Header of the last received HTTP request for the stated client connection is checked. If a match is not found the currently active language of the HTTP Server Control Manager is used.

Assignment

CTRL PlugIn

Availability

CTRL