Elgg  Version 2.3
language.php
Go to the documentation of this file.
1 <?php
10 
11 if (!$user instanceof ElggUser) {
12  return;
13 }
14 
15 $title = elgg_echo('user:set:language');
17  '#type' => 'select',
18  'name' => 'language',
19  'value' => $user->language,
20  'options_values' => get_installed_translations(),
21  '#label' => elgg_echo('user:language:label'),
22  ));
23 
$content
Definition: language.php:16
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1424
if(!$user instanceof ElggUser) $title
Definition: language.php:15
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$user
Definition: language.php:9
elgg echo
Translates a string.
Definition: languages.js:48
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:56
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
Definition: views.php:1250
get_installed_translations()
Return an array of installed translations as an associative array "two letter code" => "native langua...
Definition: languages.php:93