This method will return the language selected by the user, or the default language. It looks first for a cached
language code, then checks for a language cookie, then it tries to calculate the preferred language from HTTP
headers.
public getLanguage ( ) : string | ||
return | string | The language selected by the user according to the processing rules specified, or the default language in any other case. |