- Name
-
GetLanguageInfo -- get information about language (V7.1)
- Synopsis
-
t = GetLanguageInfo(lang)
- Function
-
This function can be used to retrieve additional information about a language.
You have to pass one of Hollywood's language constants in the
lang
argument.
See GetSystemLanguage for a list of languages.
GetLanguageInfo()
will then return a table with the following fields
initialized:
Code:
-
Two letter language code as defined by ISO 639.
Name:
-
The language's ISO name.
- Inputs
-
- lang
- one of the language constants defined by Hollywood (see above)
- Results
-
- t
- table containing language information
- Example
-
t = GetLanguageInfo(GetSystemLanguage())
Print(t.Code, t.Name)
On a German system, this will print "DE" and "german".