GetLanguageByName Function

Retrieves the language number from a language name.

int GetLanguageByName(const char[] name)

Parameters

const char[] name

Language name (case insensitive).

Return Value

Language number. -1 if not found.