Path problem for the translated file
This commit is contained in:
parent
320029c9c0
commit
da64dcd9f6
@ -7,7 +7,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
Zend_Registry::set('config', $config);
|
||||
return $config;
|
||||
}
|
||||
|
||||
|
||||
//Initialisation global des paramètres de vue
|
||||
protected function _initViewSettings()
|
||||
{
|
||||
@ -17,7 +17,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
$view->headTitle()->setSeparator(' - ');
|
||||
$view->headTitle('Extranet Scores & Décisions');
|
||||
}
|
||||
|
||||
|
||||
protected function _initRouter()
|
||||
{
|
||||
$this->bootstrap('frontController');
|
||||
@ -35,32 +35,32 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
'controller' => 'print',
|
||||
'fichier' => '',
|
||||
));
|
||||
|
||||
|
||||
$router->addRoute('localauth', $localauthRoute);
|
||||
$router->addRoute('fichier', $fichierRoute);
|
||||
$router->addRoute('print', $printRoute);
|
||||
return $router;
|
||||
}
|
||||
|
||||
|
||||
protected function _initTranslate()
|
||||
{
|
||||
$registry = Zend_Registry::getInstance();
|
||||
|
||||
|
||||
$translate = new Zend_Translate(
|
||||
array(
|
||||
'adapter' => 'gettext',
|
||||
'content' => APPLICATION_PATH . '\\languages\fr.mo',
|
||||
'locale' => 'fr',
|
||||
'scan' => Zend_Translate::LOCALE_DIRECTORY
|
||||
)
|
||||
array(
|
||||
'adapter' => 'gettext',
|
||||
'content' => APPLICATION_PATH . DIRECTORY_SEPARATOR . 'languages' . DIRECTORY_SEPARATOR . 'fr.mo',
|
||||
'locale' => 'fr',
|
||||
'scan' => Zend_Translate::LOCALE_DIRECTORY
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
$translate->addTranslation(
|
||||
array(
|
||||
'content' => APPLICATION_PATH . '\\languages\en.mo',
|
||||
'locale' => 'en',
|
||||
'scan' => Zend_Translate::LOCALE_DIRECTORY
|
||||
)
|
||||
array(
|
||||
'content' => APPLICATION_PATH . DIRECTORY_SEPARATOR . 'languages' . DIRECTORY_SEPARATOR . 'en.mo',
|
||||
'locale' => 'en',
|
||||
'scan' => Zend_Translate::LOCALE_DIRECTORY
|
||||
)
|
||||
);
|
||||
|
||||
$registry->set('Zend_Translate', $translate);
|
||||
@ -76,10 +76,10 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
}
|
||||
$logger = new Zend_Log($writer);
|
||||
Zend_Registry::set('firebug', $logger);
|
||||
|
||||
|
||||
//ChromePHP - a voir comment désactiver
|
||||
require_once 'Vendors/ChromePHP/ChromePhp.php';
|
||||
|
||||
|
||||
//Application Logger en Production
|
||||
$AppLogger = new Zend_Log();
|
||||
if (APPLICATION_ENV == 'production')
|
||||
@ -99,7 +99,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
$AppLogger->addWriter($AppFileWriter);
|
||||
Zend_Registry::set('log', $AppLogger);
|
||||
}
|
||||
|
||||
|
||||
protected function _initDb()
|
||||
{
|
||||
$c = Zend_Registry::get('config');
|
||||
@ -114,12 +114,12 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the default adapter to use with all model
|
||||
*/
|
||||
Zend_Db_Table::setDefaultAdapter($db);
|
||||
|
||||
|
||||
/**
|
||||
* Set Firebug Database profiler
|
||||
*/
|
||||
@ -129,7 +129,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||
$db->setProfiler($profiler);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected function _initCache()
|
||||
{
|
||||
//MetadataCache pour la base de données
|
||||
@ -140,10 +140,10 @@ 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