Elgg  Version master
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

$config_language = elgg_get_config('language')

Definition at line 17 of file i18n.php.

◆ $language_options [1/2]

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

Definition at line 14 of file i18n.php.

◆ $language_options [2/2]

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

Definition at line 26 of file i18n.php.

◆ $result

$result
Initial value:
'#type' => 'select',
'name' => 'language',
'#label' => elgg_echo('installation:language'),
'value' => elgg_get_config('language'),
'options_values' => elgg()->translator->getInstalledTranslations(true),
])
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg()
Bootstrapping and helper procedural code available for use in Elgg core and plugins.
Definition: elgglib.php:12
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112

Site settings, i18n section.

Definition at line 6 of file i18n.php.