[Translator] Performance improvement in MessageCatalogue and catalogue operations.
This commit is contained in:
parent
cee47cec05
commit
5179af4796
@ -130,7 +130,9 @@ class MessageCatalogue implements MessageCatalogueInterface, MetadataAwareInterf
|
|||||||
if (!isset($this->messages[$domain])) {
|
if (!isset($this->messages[$domain])) {
|
||||||
$this->messages[$domain] = $messages;
|
$this->messages[$domain] = $messages;
|
||||||
} else {
|
} else {
|
||||||
$this->messages[$domain] = array_replace($this->messages[$domain], $messages);
|
foreach ($messages as $id => $message) {
|
||||||
|
$this->messages[$domain][$id] = $message;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user