Go to the source code of this file.
◆ $config_language
◆ $language_options [1/2]
$language_options = elgg()->translator->getInstalledTranslations() |
◆ $language_options [2/2]
if ( $config_language !=='en') $language_options[ 'en'] |
Initial value:= [
'value' => 'en',
'disabled' => true,
]
Definition at line 26 of file i18n.php.
◆ $result
Initial value:
'#type' => 'select',
'name' => 'language',
'#label' =>
elgg_echo(
'installation: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.
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Site settings, i18n section.
Definition at line 6 of file i18n.php.