Elgg  Version 1.9
language.php
Go to the documentation of this file.
1 <?php
10 
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:1197
$title
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
elgg_get_page_owner_entity()
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
$content
Set robots.txt action.
Definition: set_robots.php:6
$user
Definition: language.php:9
get_installed_translations()
Return an array of installed translations as an associative array "two letter code" => "native langua...
Definition: languages.php:404