get('Zend_Translate'); $currLocale = $translate->getLocale(); $user = new Scores_Utilisateur(); if ( $user->isLog() ) { switch ($user->getLang()) { case "en": $langLocale = 'en'; break; case "fr": default: $langLocale = 'fr'; } } else { $langLocale = 'fr'; } $newLocale = new Zend_Locale(); $newLocale->setLocale($langLocale); $registry->set('Zend_Locale', $newLocale); $translate->setLocale($langLocale); $registry->set('Zend_Translate', $translate); } }