public function parseString($str, array $arguments = null)
    {
        if (empty($arguments)) {
            return $str;
        }
        $arg_mask = $this->getLoader()->getOption('arg_wrapper_mask');
        foreach ($arguments as $name=>$value) {
            if (is_string($name)) {
                $str = strtr($str, array( sprintf($arg_mask, $name) => $value));
            } else {
                $str = sprintf($str, self::translate($value));
            }
        }
        return $str;
    }