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 /digest.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 'digest.php')
-rw-r--r-- | digest.php | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -53,21 +53,7 @@ foreach($users as $uid) $PREF = DB_get_PREF($uid); // set users language preference - $language = $PREF['language']; - - switch($language) - { - case 'de': - putenv("LC_ALL=de_DE"); - setlocale(LC_ALL, "de_DE"); - // Specify location of translation tables - bindtextdomain("edoko", "./locale"); - // Choose domain - textdomain("edoko"); - break; - default: - /* do nothing */ - } + set_language($PREF['language']); // calculate mod by digest-time switch($PREF['digest']) |