bug #14381 [FrameworkBundle] Initialize translator with the default locale. (aitboudad)
This PR was merged into the 2.6 branch.
Discussion
----------
[FrameworkBundle] Initialize translator with the default locale.
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #13887
| License | MIT
| Doc PR | ~
Commits
-------
a0d185a
[FrameworkBundle] Initialize translator with the default locale.
This commit is contained in:
commit
4545af24cf
@ -57,7 +57,7 @@ class Translator extends BaseTranslator
|
|||||||
|
|
||||||
$this->options = array_merge($this->options, $options);
|
$this->options = array_merge($this->options, $options);
|
||||||
|
|
||||||
parent::__construct(null, $selector, $this->options['cache_dir'], $this->options['debug']);
|
parent::__construct($container->getParameter('kernel.default_locale'), $selector, $this->options['cache_dir'], $this->options['debug']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user