get('Zend_Translate'); $currLocale = $translate->getLocale(); $user = new Scores_Utilisateur(); $lang = $request->getParam('lang', ''); switch ($lang) { case "fr": $langLocale = 'fr'; break; case "en": $langLocale = 'en'; break; default: $langLocale = $session->lang !='' ? $session->lang : $user->getLang(); } $newLocale = new Zend_Locale(); $newLocale->setLocale($langLocale); $registry->set('Zend_Locale', $newLocale); $session->lang = $langLocale; $translate->setLocale($langLocale); $registry->set('Zend_Translate', $translate); } }