From c8ae2497b7e4c7393210ed186acd672a0040389f Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Wed, 03 Sep 2008 12:03:19 -0400 Subject: [PATCH] Auto-detect client language and timezone if desired by config/prefs --- config/main.inc.php.dist | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/main.inc.php.dist b/config/main.inc.php.dist index 09fad19..fcf7e8f 100644 --- a/config/main.inc.php.dist +++ b/config/main.inc.php.dist @@ -129,8 +129,9 @@ // please provide a string of exactly 24 chars. $rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str'; -// the default locale setting -$rcmail_config['language'] = 'en_US'; +// the default locale setting (leave empty for auto-detection) +// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR +$rcmail_config['language'] = null; // use this format for short date display $rcmail_config['date_short'] = 'D H:i'; @@ -338,7 +339,7 @@ $rcmail_config['pagesize'] = 40; // use this timezone to display date/time -$rcmail_config['timezone'] = intval(date('O'))/100 - date('I'); +$rcmail_config['timezone'] = 'auto'; // is daylight saving On? $rcmail_config['dst_active'] = (bool)date('I'); -- Gitblit v1.9.1