[imp] (3.1) login tasks language

Viljo Viitanen vviitane+mail.imp@mappi.helsinki.fi
Mon, 01 Jul 2002 22:09:30 +0300 (EEST)


Login tasks (most visibly: last login) use the language from login page, not
user's preference, which causes funny effects.

Language settings are obviously initialized too late. I fixed this by adding

global $registry;
Lang::setLang($prefs->getValue('language'));
Lang::setTextdomain($registry->getApp(), $registry->getParam('fileroot') .
'/locale', Lang::getCharset());

in lib/IMP.php function loginTasks. Perhaps there's a better way?


(this with imp 3.1/horde 2.1).

-- 
Viljo Viitanen