From 6ff0e668a4158f9ba2c7bd9509c48f1681259da2 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 14 Jan 2012 15:01:50 +0100 Subject: We can now change the language of a user. --- ratatoeskr/backend.php | 4 +++- ratatoeskr/templates/src/systemtemplates/user.html | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'ratatoeskr') diff --git a/ratatoeskr/backend.php b/ratatoeskr/backend.php index 5d736b3..78ef83c 100644 --- a/ratatoeskr/backend.php +++ b/ratatoeskr/backend.php @@ -1474,6 +1474,7 @@ $backend_subactions = url_action_subactions(array( { $user->fullname = $_POST["fullname"]; $user->mail = $_POST["mail"]; + $user->language = $_POST["lang"]; $current_groups = array_map(function($g) { return $g->get_id(); }, $user->get_groups()); $new_groups = empty($_POST[groups_multiselect]) ? array() : $_POST["groups_multiselect"]; @@ -1528,7 +1529,8 @@ $backend_subactions = url_action_subactions(array( "id" => $user->get_id(), "name" => $user->username, "fullname" => $user->fullname, - "mail" => $user->mail + "mail" => $user->mail, + "lang" => $user->language ); $ste->vars["groups"] = array_map(function($g) use ($user) { return array( "id" => $g->get_id(), diff --git a/ratatoeskr/templates/src/systemtemplates/user.html b/ratatoeskr/templates/src/systemtemplates/user.html index a083e47..30f06fd 100644 --- a/ratatoeskr/templates/src/systemtemplates/user.html +++ b/ratatoeskr/templates/src/systemtemplates/user.html @@ -13,6 +13,14 @@ :

+

+ :
+ +

: