public function hasTrans($id, $domain = null, $locale = null)
    {
        if (null === $domain) {
            $domain = 'messages';
        }

        return $this->getCatalogue($locale)->has($id, $domain);
    }
public function hasTrans($id, $domain = null, $locale = null)
    {
        if (null === $domain) {
            $domain = 'messages';
        }

        return $this->getCatalogue($locale)->has($id, $domain);
    }
public function hasTrans ( $ id , $ domain = null , $ locale = null ) { if ( null === $ domain ) { $ domain = 'messages' ; } return $ this -> getCatalogue ( $ locale ) -> has ( $ id , $ domain ) ; }
Checks if a message has a translation.

@param  string      $id     The message id.
@param  string|null $domain The domain for the message or NULL to use the default.
@param  string|null $locale The locale or NULL to use the default.
@return boolean TRUE if the message has a translation, FALSE otherwise.
Checks if a message has a translation .