public function __($message, $variables = array())
    {
        if (!$this->translate) {
            return vsprintf($message, $variables);
        }

        $translator = $this->translate;

        return vsprintf($translator->translate($message), $variables);
    }
public function __($message, $variables = array())
    {
        if (!$this->translate) {
            return vsprintf($message, $variables);
        }

        $translator = $this->translate;

        return vsprintf($translator->translate($message), $variables);
    }
public function __ ( $ message , $ variables = array ( ) ) { if ( ! $ this -> translate ) { return vsprintf ( $ message , $ variables ) ; } $ translator = $ this -> translate ; return vsprintf ( $ translator -> translate ( $ message ) , $ variables ) ; }
Translates the ID or message in the given language.

Translation messages may contain any formatting as used by the php
vsprintf function.

@param string $message   ID or message to translate.
@param array  $variables Variables to use for substitution.
@codingStandardsIgnoreStart

@return string
Translates the ID or message in the given language .