src/StringTranslatingTrait.php
protected function __($string, $args = array(), $context = null)
    {
        $string = $this->_translate($string, $context);
        array_unshift($args, $string);
        $result = call_user_func_array('sprintf', $args);

        return $result;
    }
protected function __($string, $args = array(), $context = null)
    {
        $string = $this->_translate($string, $context);
        array_unshift($args, $string);
        $result = call_user_func_array('sprintf', $args);

        return $result;
    }
protected function __ ( $ string , $ args = array ( ) , $ context = null ) { $ string = $ this -> _translate ( $ string , $ context ) ; array_unshift ( $ args , $ string ) ; $ result = call_user_func_array ( 'sprintf' , $ args ) ; return $ result ; }
Translates a string, and replaces placeholders.

@since [*next-version*]
@see sprintf()
@see _translate()

@param string $string  The format string to translate.
@param array  $args    Placeholder values to replace in the string.
@param mixed  $context The context for translation.

@return string The translated string.
Translates a string and replaces placeholders .