protected function initOptions()
{
// Setup locale
putenv('LC_ALL=' . $this->locale);
putenv('LANG=' . $this->locale);
putenv('LANGUAGE=' . $this->locale);
// Windows workaround
defined('LC_MESSAGES') ?: define('LC_MESSAGES', 6);
setlocale(LC_MESSAGES, $this->locale);
// For gettext only
if (function_exists('gettext')) {
// Setup domain path
$this->addTextDomain($this->domain, $this->path);
// Setup default domain
textdomain($this->domain);
}
}