Public Member Functions | |
lang ($id, $code, $description, $flag) | |
getIdFromCode ($langList, $code) | |
returns a lang database id from a list of lang object and a lang code | |
getUILangs ($langBaseDir) | |
returns a list of available langs from i18n directory | |
Public Attributes | |
$id | |
database id | |
$code | |
lang code | |
$description | |
free text description | |
$flag | |
flag file name (fr_lang.png for example) |
an allowed translation lang must not be confused with a UI translation lang. a site may allow 2 langs (say fr and en) but provides UI translation files in more languages.
lang::getIdFromCode | ( | $ | langList, | |
$ | code | |||
) |
returns a lang database id from a list of lang object and a lang code
this method is static
langList | array<lang> | |
code | lang code |
lang::getUILangs | ( | $ | langBaseDir | ) |
returns a list of available langs from i18n directory
this method is static
$langBaseDir | path to i18n lang files |
lang::$code |
lang code
lang::$description |
free text description
lang::$flag |
flag file name (fr_lang.png for example)
lang::$id |
database id