Commit 1ef051aa authored by Ghislain Loas's avatar Ghislain Loas

dev #74865 add locale to config.ini

parent fbd40788
Pipeline #4075 passed with stage
in 34 minutes and 39 seconds
[global]
timeZone = Europe/Paris
locale = fr_FR.UTF-8
; SMTP
; mail.transport.smtp.host =
......
......@@ -152,8 +152,11 @@ class Bokeh_Engine {
$this->_config = new Zend_Config_Ini($config_init_file_path, $serveur);
Zend_Registry::set('cfg', $this->_config);
$locale = $this->_config->locale
? $this->_config->locale
: 'fr_FR.UTF-8';
setlocale(LC_TIME, 'fr_FR.UTF-8');
setlocale(LC_TIME, $this->_config->locale);
date_default_timezone_set($this->_config->timeZone);
return $this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment