httpGetLanguage()
The function checks the stated client connection and returns a matching language ID. The function httpGetLanguageId() can be used to keep the same functionality but have a OaLanguage enum value returned.
Synopsis
int
httpGetLanguage(
int
idx);
Parameter
Parameter | Description |
---|---|
idx | Index of the client connection. |
Return value
Returns the best matching language ID on success, in case of an error -1 is returned.
Error
No index has been stated.
Description
The function returns the best matching language ID for the stated client connection. To determine the language ID the "Accept Language" Header of the last received HTTP request for the stated client connection is checked.
The result range is between 0 and getNoOfLangs() - 1. If no better match is found the currently active language of the HTTP Server Control Manager is used.
Assignment
CTRL PlugIn
Availability
CTRL