libs/translation/Translator.php
public function translate($message, $parameters = array())
    {
        if (count($parameters) === 0) {
            return $this->translations[$message];
        } else {
            return vsprintf($this->translations[$message], $parameters);
        }
    }
public function translate($message, $parameters = array())
    {
        if (count($parameters) === 0) {
            return $this->translations[$message];
        } else {
            return vsprintf($this->translations[$message], $parameters);
        }
    }
public function translate ( $ message , $ parameters = array ( ) ) { if ( count ( $ parameters ) === 0 ) { return $ this -> translations [ $ message ] ; } else { return vsprintf ( $ this -> translations [ $ message ] , $ parameters ) ; } }
Translates given message.
@param type $message
@param type $parameters
Translates given message .