You are here

public function MessageCatalogue::defines in Plug 7

Checks if a message has a translation (it does not take into account the fallback mechanism).

@api

Parameters

string $id The message id:

string $domain The domain name:

Return value

bool true if the message has a translation, false otherwise

Overrides MessageCatalogueInterface::defines

File

lib/Symfony/translation/MessageCatalogue.php, line 111

Class

MessageCatalogue
MessageCatalogue.

Namespace

Symfony\Component\Translation

Code

public function defines($id, $domain = 'messages') {
  return isset($this->messages[$domain][$id]);
}