Use NLS::setLanguageEnvironment().
authorJan Schneider <jan@horde.org>
Mon, 26 Jan 2009 15:09:24 +0000 (16:09 +0100)
committerJan Schneider <jan@horde.org>
Mon, 26 Jan 2009 15:48:32 +0000 (16:48 +0100)
kronolith/scripts/agenda.php

index b3182bd..c03c24f 100755 (executable)
@@ -146,9 +146,7 @@ function send_agendas()
         $lang = $prefs->getValue('language');
         $twentyFour = $prefs->getValue('twentyFour');
         $dateFormat = $prefs->getValue('date_format');
-        NLS::setLang($lang);
-        NLS::setTextdomain('kronolith', KRONOLITH_BASE . '/locale', NLS::getCharset());
-        String::setDefaultCharset(NLS::getCharset());
+        NLS::setLanguageEnvironment($lang);
         $mime_mail = new Horde_Mime_Mail(sprintf(_("Your daily agenda for %s"), strftime($dateFormat, $runtime)),
                                          null,
                                          $email,