/* 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;
/* 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());
*
* @throws Horde_Exception
*/
- static public function setLang($lang = null)
+ static public function setLanguage($lang = null)
{
Horde::loadConfiguration('nls.php', null, 'horde');
if (empty($app)) {
$app = $GLOBALS['registry']->getApp();
}
- self::setLang($language);
+ self::setLanguage($language);
self::setTextdomain(
$app,
$GLOBALS['registry']->get('fileroot', $app) . '/locale',
$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;
}
foreach ($addresses as $lang => $twentyFour) {
- Horde_Nls::setLang($lang);
+ Horde_Nls::setLanguageEnvironment($lang);
switch ($action) {
case 'add':