language updates
This commit is contained in:
parent
b8f9ec1860
commit
9ecb242330
1 changed files with 9 additions and 0 deletions
|
@ -170,6 +170,15 @@
|
|||
$query = "update `users` set `language`='".$_SESSION['_config']['language']."'
|
||||
where `id`='".$_SESSION['profile']['id']."'";
|
||||
mysql_query($query);
|
||||
} else {
|
||||
$_SESSION['_config']['language'] = $_SESSION['profile']['language'];
|
||||
|
||||
putenv("LANG=".$_SESSION['_config']['language']);
|
||||
setlocale(LC_ALL, $_SESSION['_config']['language']);
|
||||
|
||||
$domain = 'messages';
|
||||
bindtextdomain("$domain", "/home/cacert/locale");
|
||||
textdomain("$domain");
|
||||
}
|
||||
$query = "select sum(`points`) as `total` from `notary` where `to`='".$_SESSION['profile']['id']."' group by `to`";
|
||||
$res = mysql_query($query);
|
||||
|
|
Loading…
Reference in a new issue