summaryrefslogtreecommitdiffstats
path: root/digest.php
diff options
context:
space:
mode:
Diffstat (limited to 'digest.php')
-rw-r--r--digest.php22
1 files changed, 20 insertions, 2 deletions
diff --git a/digest.php b/digest.php
index 4426bc2..0762519 100644
--- a/digest.php
+++ b/digest.php
@@ -45,13 +45,31 @@ global $defaulttimezone;
foreach($users as $uid)
{
// get local time
-
$zone = DB_get_user_timezone($uid);
date_default_timezone_set($zone);
$time = (int)(date("H"));
- // calculate mod by digest-time
+ // load users preferences
$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 */
+ }
+
+ // calculate mod by digest-time
switch($PREF['digest'])
{
case 'digest-off':