diff options
author | Arun Persaud <arun@nubati.net> | 2012-12-31 15:11:45 +0000 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2012-12-31 15:11:45 +0000 |
commit | aeb9ef98850e762291bc6a1d39b31d1ac4db4817 (patch) | |
tree | 263ce358d5299b3b1214279b58b33ba9bf73f4ca /include/preferences.php | |
parent | 059f17ad6897e250b2bdfdc9837a39af62859d7e (diff) | |
download | e-DoKo-aeb9ef98850e762291bc6a1d39b31d1ac4db4817.tar.gz e-DoKo-aeb9ef98850e762291bc6a1d39b31d1ac4db4817.tar.bz2 e-DoKo-aeb9ef98850e762291bc6a1d39b31d1ac4db4817.zip |
improved language detection using browser information; set the language directly in more places
previously one had to reload to get the language correct, now it should be correct right away.
We also read out the browser request for a language now.
Diffstat (limited to 'include/preferences.php')
-rw-r--r-- | include/preferences.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/preferences.php b/include/preferences.php index a20913a..3517a42 100644 --- a/include/preferences.php +++ b/include/preferences.php @@ -51,6 +51,7 @@ display_user_menu($myid); $PREF = DB_get_PREF($myid); /* set language chosen in preferences, will become active on the next reload (see index.php)*/ $_SESSION['language'] = $PREF['language']; +set_language($PREF['language']); $timezone = DB_get_user_timezone($myid); DB_update_user_timestamp($myid); |