public function MessageCatalogue::add in Plug 7
@api
Overrides MessageCatalogueInterface::add
3 calls to MessageCatalogue::add()
- MessageCatalogue::addCatalogue in lib/
Symfony/ translation/ MessageCatalogue.php - @api
- MessageCatalogue::replace in lib/
Symfony/ translation/ MessageCatalogue.php - @api
- MessageCatalogue::set in lib/
Symfony/ translation/ MessageCatalogue.php - @api
File
- lib/
Symfony/ translation/ MessageCatalogue.php, line 151
Class
- MessageCatalogue
- MessageCatalogue.
Namespace
Symfony\Component\TranslationCode
public function add($messages, $domain = 'messages') {
if (!isset($this->messages[$domain])) {
$this->messages[$domain] = $messages;
}
else {
$this->messages[$domain] = array_replace($this->messages[$domain], $messages);
}
}