PMA\libraries\Advisor::translate PHP Method

translate() public method

Wrapper function for translating.
public translate ( string $str, string $param = null ) : string
$str string the string
$param string the parameters
return string
    public function translate($str, $param = null)
    {
        $string = _gettext(self::escapePercent($str));
        if (!is_null($param)) {
            $params = $this->ruleExprEvaluate('array(' . $param . ')');
        } else {
            $params = array();
        }
        return vsprintf($string, $params);
    }