get('Zend_Translate'); $currLocale = $translate->getLocale(); $user = new Scores_Utilisateur(); if ( $user->isLog() ) { $langtmp = $request->getParam('langtmp', ''); if (!$langtmp) $langtmp = $user->getLangTmp() ? $user->getLangTmp() : $user->getLang(); $newLocale = new Zend_Locale(); $newLocale->setLocale($langtmp); $registry->set('Zend_Locale', $newLocale); $translate->setLocale($langtmp); $user->setLangTmp($langtmp); $registry->set('Zend_Translate', $translate); } else { $langtmp = 'fr'; } } }