Prado\I18N\core\MessageFormat::format PHP 메소드

format() 공개 메소드

The output charset is determined by $this->getCharset();
public format ( $string, $args = [], $catalogue = null, $charset = null ) : string
리턴 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);
    }