GetLanguageByCode Function

Retrieves the language number from a language code.

int GetLanguageByCode(const char[] code)

Parameters

const char[] code

Language code (2-3 characters usually).

Return Value

Language number. -1 if not found.