public function MessageCatalogue::replace in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/translation/MessageCatalogue.php \Symfony\Component\Translation\MessageCatalogue::replace()
Sets translations for a given domain.
Parameters
array $messages An array of translations:
string $domain The domain name:
Overrides MessageCatalogueInterface::replace
File
- vendor/
symfony/ translation/ MessageCatalogue.php, line 121
Class
- MessageCatalogue
- MessageCatalogue.
Namespace
Symfony\Component\TranslationCode
public function replace($messages, $domain = 'messages') {
$this->messages[$domain] = array();
$this
->add($messages, $domain);
}