Elgg  Version 3.0
Variables
languages.js.php File Reference

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.echo() More...
 
 $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)
 

Variable Documentation

$all_translations = _elgg_services()->translator->getLoadedTranslations()

Definition at line 24 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.echo()

$vars['language'] the requested language

Definition at line 9 of file languages.js.php.

$site_language = elgg_get_config('language')

Definition at line 15 of file languages.js.php.

foreach (array_keys($combine_languages) as $language) $translations = []

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.