Horde_Nls::setLang() => setLanguage()/setLanguageEnvironment()
authorJan Schneider <jan@horde.org>
Wed, 3 Feb 2010 10:05:12 +0000 (11:05 +0100)
committerJan Schneider <jan@horde.org>
Wed, 3 Feb 2010 10:33:56 +0000 (11:33 +0100)
framework/Auth/lib/Horde/Auth.php
framework/Core/lib/Horde/Registry.php
framework/Nls/lib/Horde/Nls.php
horde/login.php
kronolith/lib/Kronolith.php

index 0ee043f..9bccffe 100644 (file)
@@ -746,7 +746,7 @@ class Horde_Auth
 
         /* Reload preferences for the new user. */
         $GLOBALS['registry']->loadPrefs();
-        Horde_Nls::setLang($GLOBALS['prefs']->getValue('language'));
+        Horde_Nls::setLanguageEnvironment($GLOBALS['prefs']->getValue('language'));
 
         if (!empty($options['nologin'])) {
             return true;
index ffe5012..91238c8 100644 (file)
@@ -281,7 +281,7 @@ class Horde_Registry
         /* Initialize the localization routines and variables. We can't use
          * Horde_Nls::setLanguageEnvironment() here because that depends on the
          * registry to be already initialized. */
-        Horde_Nls::setLang();
+        Horde_Nls::setLanguage();
         Horde_Nls::setTextdomain('horde', HORDE_BASE . '/locale', Horde_Nls::getCharset());
         Horde_String::setDefaultCharset(Horde_Nls::getCharset());
 
index e0d0325..1fcf75d 100644 (file)
@@ -102,7 +102,7 @@ class Horde_Nls
      *
      * @throws Horde_Exception
      */
-    static public function setLang($lang = null)
+    static public function setLanguage($lang = null)
     {
         Horde::loadConfiguration('nls.php', null, 'horde');
 
@@ -181,7 +181,7 @@ class Horde_Nls
         if (empty($app)) {
             $app = $GLOBALS['registry']->getApp();
         }
-        self::setLang($language);
+        self::setLanguage($language);
         self::setTextdomain(
             $app,
             $GLOBALS['registry']->get('fileroot', $app) . '/locale',
index 17d5e1f..e0b59ed 100644 (file)
@@ -173,7 +173,7 @@ if ($error_reason) {
     $registry->setupSessionHandler();
     @session_start();
 
-    Horde_Nls::setLang($language);
+    Horde_Nls::setLanguageEnvironment($language);
 
     /* Hook to preselect the correct language in the widget. */
     $_GET['new_lang'] = $language;
index 469b51d..0752e7c 100644 (file)
@@ -1907,7 +1907,7 @@ class Kronolith
         }
 
         foreach ($addresses as $lang => $twentyFour) {
-            Horde_Nls::setLang($lang);
+            Horde_Nls::setLanguageEnvironment($lang);
 
             switch ($action) {
             case 'add':