getActiveLang()

Returns the active language. The function getActiveLangId() provides the same functionality but returns an OaLanguage enum.

Synopsis

int getActiveLang();

Parameters

Parameter Description
none -

Return value

If successful, the function returns the index of the active language or in the event of an error, -1.

Error

Description

Returns the index of the active language. This lies in the range of 0 to the number of languages that are available, minus one. The function getNoOfLangs() returns the number of available languages.

Example

see getNoOfLangs()

Assignment

Multilingualism

Availability

CTRL