You are here

public function MessageCatalogue::set in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/MessageCatalogue.php \Symfony\Component\Translation\MessageCatalogue::set()

Sets a message translation.

Parameters

string $id The message id:

string $translation The messages translation:

string $domain The domain name:

Overrides MessageCatalogueInterface::set

File

vendor/symfony/translation/MessageCatalogue.php, line 73

Class

MessageCatalogue
MessageCatalogue.

Namespace

Symfony\Component\Translation

Code

public function set($id, $translation, $domain = 'messages') {
  $this
    ->add(array(
    $id => $translation,
  ), $domain);
}