From 31e326ede98fc555d7132984c0027f74d080fee3 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 9 Jul 2009 02:15:32 -0600 Subject: [PATCH] No more global $nls variable. --- babel/lib/Babel.php | 10 +++++----- babel/lib/Translate.php | 4 ++-- babel/lib/api.php | 4 ++-- babel/lib/base.php | 2 +- babel/stats.php | 2 +- babel/view.php | 2 +- fima/data.php | 4 ++-- imp/compose.php | 2 +- imp/login.php | 2 +- imp/mailbox.php | 2 +- imp/message.php | 2 +- 11 files changed, 18 insertions(+), 18 deletions(-) diff --git a/babel/lib/Babel.php b/babel/lib/Babel.php index cee2459ad..52125f2d7 100644 --- a/babel/lib/Babel.php +++ b/babel/lib/Babel.php @@ -29,13 +29,13 @@ class Babel { } function displayLanguage() { - global $nls, $lang, $app; + global $lang, $app; - if (!isset($nls['languages'][$lang])) { + if (!isset(Horde_Nls::$config['languages'][$lang])) { return; } - $res = sprintf(_("Language: %s (%s)"), $nls['languages'][$lang], $lang); + $res = sprintf(_("Language: %s (%s)"), Horde_Nls::$config['languages'][$lang], $lang); if ($app) { $res .= '  |   ' . sprintf(_("Module: %s"), $app); } @@ -82,7 +82,7 @@ class Babel { } function LanguageSelection() { - global $nls, $app; + global $app; $html = ''; $html .= ''; @@ -91,7 +91,7 @@ class Babel { $html .= ''; $html .= '