issue #0001547 : Debug
This commit is contained in:
parent
ee8822f845
commit
c295f9a4b6
@ -51,19 +51,18 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
$identity = $auth->getIdentity();
|
||||
$lang = $identity->langtmp;
|
||||
switch($lang) {
|
||||
case 'fr':
|
||||
$locale = new Zend_Locale('fr_FR');
|
||||
break;
|
||||
case 'en':
|
||||
$locale = new Zend_Locale('en_EN');
|
||||
$locale = new Zend_Locale('en');
|
||||
break;
|
||||
case 'fr':
|
||||
default:
|
||||
$locale = new Zend_Locale('fr');
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
$locale = new Zend_Locale('fr_FR');
|
||||
$locale = new Zend_Locale('fr');
|
||||
}
|
||||
|
||||
$registry->set('Zend_Locale', $locale);
|
||||
|
||||
$translate = new Zend_Translate(
|
||||
array(
|
||||
'adapter' => 'gettext',
|
||||
@ -80,8 +79,11 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
'scan' => Zend_Translate::LOCALE_DIRECTORY
|
||||
)
|
||||
);
|
||||
|
||||
$translate->setLocale($locale);
|
||||
|
||||
$registry->set('Zend_Locale', $locale);
|
||||
$registry->set('Zend_Translate', $translate);
|
||||
|
||||
return $registry;
|
||||
}
|
||||
|
||||
@ -159,11 +161,8 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
);
|
||||
$backendOptions = array();
|
||||
$cache = Zend_Cache::factory('Core','Apc', $frontendOptions, $backendOptions);
|
||||
|
||||
Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);
|
||||
|
||||
//Cache pour les données de la base à stocker
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user