public function getParsedOption($name, $lang = null, $default = null)
    {
        $val = $this->getOption($name, $default);
        if (false!==strpos($val, '%s')) {
            if (is_null($lang)) {
                $i18n = I18n::getInstance();
                $lang = $i18n->getLanguage();
            }
            if (is_array($lang)) {
                array_unshift($lang, $val);
                $val = call_user_func_array('sprintf', $lang);
            } else {
                $val = sprintf($val, $lang);
            }
        }
        return $val;
    }
public function getParsedOption($name, $lang = null, $default = null)
    {
        $val = $this->getOption($name, $default);
        if (false!==strpos($val, '%s')) {
            if (is_null($lang)) {
                $i18n = I18n::getInstance();
                $lang = $i18n->getLanguage();
            }
            if (is_array($lang)) {
                array_unshift($lang, $val);
                $val = call_user_func_array('sprintf', $lang);
            } else {
                $val = sprintf($val, $lang);
            }
        }
        return $val;
    }
public function getParsedOption ( $ name , $ lang = null , $ default = null ) { $ val = $ this -> getOption ( $ name , $ default ) ; if ( false !== strpos ( $ val , '%s' ) ) { if ( is_null ( $ lang ) ) { $ i18n = I18n :: getInstance ( ) ; $ lang = $ i18n -> getLanguage ( ) ; } if ( is_array ( $ lang ) ) { array_unshift ( $ lang , $ val ) ; $ val = call_user_func_array ( 'sprintf' , $ lang ) ; } else { $ val = sprintf ( $ val , $ lang ) ; } } return $ val ; }
Parse an option value replacing `%s` by the actual language code

@param   string $name The option name
@param   string|array $lang The language code to use or an array to pass to
the 'sprintf()' method
@param   mixed $default The value to return if the option can't be found
@return  mixed The value of the option if found, with replacement if so
Parse an option value replacing %s by the actual language code