Update to Drupal 8.1.0. For more information, see https://www.drupal.org/drupal-8.1.0-release-notes
This commit is contained in:
parent
b11a755ba8
commit
c0a0d5a94c
6920 changed files with 64395 additions and 57312 deletions
7
vendor/symfony/translation/Translator.php
vendored
7
vendor/symfony/translation/Translator.php
vendored
|
@ -267,9 +267,13 @@ class Translator implements TranslatorInterface, TranslatorBagInterface
|
|||
* @param string|null $locale Locale of translations, by default is current locale
|
||||
*
|
||||
* @return array[array] indexed by catalog
|
||||
*
|
||||
* @deprecated since version 2.8, to be removed in 3.0. Use TranslatorBagInterface::getCatalogue() method instead.
|
||||
*/
|
||||
public function getMessages($locale = null)
|
||||
{
|
||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.8 and will be removed in 3.0. Use TranslatorBagInterface::getCatalogue() method instead.', E_USER_DEPRECATED);
|
||||
|
||||
$catalogue = $this->getCatalogue($locale);
|
||||
$messages = $catalogue->all();
|
||||
while ($catalogue = $catalogue->getFallbackCatalogue()) {
|
||||
|
@ -424,6 +428,9 @@ EOF
|
|||
}
|
||||
|
||||
$fallbackCatalogue = new MessageCatalogue($fallback, $this->catalogues[$fallback]->all());
|
||||
foreach ($this->catalogues[$fallback]->getResources() as $resource) {
|
||||
$fallbackCatalogue->addResource($resource);
|
||||
}
|
||||
$current->addFallbackCatalogue($fallbackCatalogue);
|
||||
$current = $fallbackCatalogue;
|
||||
}
|
||||
|
|
Reference in a new issue