| @@ 578-588 (lines=11) @@ | ||
| 575 | if (!$this->currentLocale || $this->currentLocale->getIdentifier() != $this->givenLocaleIdentifier) { |
|
| 576 | $this->currentLocale = $this->getLocale($this->givenLocaleIdentifier); |
|
| 577 | // we first need to initialize all message translators before the number formatters |
|
| 578 | foreach ($this->translators as $translatorList) { |
|
| 579 | /** |
|
| 580 | * @var string $type |
|
| 581 | * @var TranslatorInterface $translator |
|
| 582 | */ |
|
| 583 | foreach ($translatorList as $type => $translator) { |
|
| 584 | if ($type == self::MESSAGE) { |
|
| 585 | $translator->localeChanged($this->currentLocale); |
|
| 586 | } |
|
| 587 | } |
|
| 588 | } |
|
| 589 | foreach ($this->translators as $translatorList) { |
|
| 590 | foreach ($translatorList as $type => $translator) { |
|
| 591 | if ($type != self::MESSAGE) { |
|
| @@ 589-595 (lines=7) @@ | ||
| 586 | } |
|
| 587 | } |
|
| 588 | } |
|
| 589 | foreach ($this->translators as $translatorList) { |
|
| 590 | foreach ($translatorList as $type => $translator) { |
|
| 591 | if ($type != self::MESSAGE) { |
|
| 592 | $translator->localeChanged($this->currentLocale); |
|
| 593 | } |
|
| 594 | } |
|
| 595 | } |
|
| 596 | } |
|
| 597 | } |
|
| 598 | ||