Elgg  Version 4.3
Variables
i18n.php File Reference

Go to the source code of this file.

Variables

 $result
 Site settings, i18n section. More...
 
 $language_options = elgg()->translator->getInstalledTranslations()
 
 $config_language = elgg_get_config('language')
 
if($config_language!== 'en') $language_options ['en']
 

Variable Documentation

$config_language = elgg_get_config('language')

Definition at line 17 of file i18n.php.

$language_options = elgg()->translator->getInstalledTranslations()

Definition at line 14 of file i18n.php.

if ($config_language!== 'en') $language_options['en']
Initial value:
= [
'text' => $language_options['en']
$language_options
Definition: i18n.php:14

Definition at line 26 of file i18n.php.

$result
Initial value:
'#type' => 'select',
'name' => 'language',
'#label' => elgg_echo('installation:language'),
'value' => elgg_get_config('language'),
'options_values' => elgg()->translator->getInstalledTranslations(true),
])
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1143
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
var elgg
Definition: elgglib.js:4
elgg_get_config($name, $default=null)
Get an Elgg configuration value.

Site settings, i18n section.

Definition at line 6 of file i18n.php.