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:
Tobias Schultze 2015-04-17 16:55:35 +02:00
commit 4545af24cf

View File

@ -57,7 +57,7 @@ class Translator extends BaseTranslator
$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']);
}
/**