Elgg  Version 6.1
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
Definition: install.js:27
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17

Site settings, i18n section.

Definition at line 6 of file i18n.php.