Elgg  Version 1.11
Go to the documentation of this file.
1 <?php
11 if ($user) {
12  $title = elgg_echo('user:set:language');
13  $content = elgg_echo('user:language:label') . ': ';
14  $content .= elgg_view("input/select", array(
15  'name' => 'language',
16  'value' => $user->language,
17  'options_values' => get_installed_translations()
18  ));
20 }
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
Definition: views.php:1217
Definition: save.php:24
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
Gets the owner entity for the current page.
Definition: pageowner.php:53
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354
Set robots.txt action.
Definition: set_robots.php:6
Definition: language.php:9
Return an array of installed translations as an associative array "two letter code" => "native langua...
Definition: languages.php:213