Prado\I18N\core\MessageFormat::format PHP Method

format() public method

The output charset is determined by $this->getCharset();
public format ( $string, $args = [], $catalogue = null, $charset = null ) : string
return string translated string.
    public function format($string, $args = array(), $catalogue = null, $charset = null)
    {
        if (empty($charset)) {
            $charset = $this->getCharset();
        }
        //force args as UTF-8
        foreach ($args as $k => $v) {
            $args[$k] = I18N_toUTF8($v, $charset);
        }
        $s = $this->formatString(I18N_toUTF8($string, $charset), $args, $catalogue);
        return I18N_toEncoding($s, $charset);
    }