From: Jan Schneider Date: Mon, 26 Jan 2009 15:09:24 +0000 (+0100) Subject: Use NLS::setLanguageEnvironment(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ac7f3719785d3d0988d83bd109ae242bc4b309c2;p=horde.git Use NLS::setLanguageEnvironment(). --- diff --git a/kronolith/scripts/agenda.php b/kronolith/scripts/agenda.php index b3182bdac..c03c24f94 100755 --- a/kronolith/scripts/agenda.php +++ b/kronolith/scripts/agenda.php @@ -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,