Elgg
Version master
|
Go to the source code of this file.
Variables | |
$language = elgg_extract('language', $vars, 'en') | |
Build a JSON array of the combined language keys to be used in javascript elgg/i18n. More... | |
$combine_languages = [] | |
$combine_languages [$language] = true | |
$site_language = elgg_get_config('language') | |
if(!empty($site_language)) | $combine_languages ['en'] = true |
$all_translations = _elgg_services()->translator->getLoadedTranslations() | |
foreach(array_keys($combine_languages) as $language) | $translations = [] |
foreach (array_keys($combine_languages) as $language) | |
$all_translations = _elgg_services()->translator->getLoadedTranslations() |
Definition at line 24 of file languages.js.php.
$combine_languages = [] |
Definition at line 11 of file languages.js.php.
$combine_languages[$language] = true |
Definition at line 12 of file languages.js.php.
if (!empty($site_language)) $combine_languages['en'] = true |
Definition at line 21 of file languages.js.php.
$language = elgg_extract('language', $vars, 'en') |
Build a JSON array of the combined language keys to be used in javascript elgg/i18n.
$vars['language'] the requested language
Definition at line 8 of file languages.js.php.
$site_language = elgg_get_config('language') |
Definition at line 15 of file languages.js.php.
Definition at line 37 of file languages.js.php.
foreach(array_keys($combine_languages) as $language) |
Definition at line 38 of file languages.js.php.