You are here

public function MessageCatalogue::replace in Zircon Profile 8

Same name and namespace in other branches
  1. 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\Translation

Code

public function replace($messages, $domain = 'messages') {
  $this->messages[$domain] = array();
  $this
    ->add($messages, $domain);
}