public function loadExtra($name)
    {
        $useCurrent = ZenValidator::config()->use_current;
        $parsleyFolder = 'parsley';
        if($useCurrent) {
            $parsleyFolder = 'parsley_current';
        }
        Requirements::javascript(ZENVALIDATOR_PATH . '/javascript/'.$parsleyFolder.'/extra/validator/' . $name . '.js');

        $lang = i18n::get_lang_from_locale(i18n::get_locale());
        Requirements::javascript(ZENVALIDATOR_PATH . '/javascript/'.$parsleyFolder.'/i18n/' . $lang . '.extra.js');
    }
public function loadExtra($name)
    {
        $useCurrent = ZenValidator::config()->use_current;
        $parsleyFolder = 'parsley';
        if($useCurrent) {
            $parsleyFolder = 'parsley_current';
        }
        Requirements::javascript(ZENVALIDATOR_PATH . '/javascript/'.$parsleyFolder.'/extra/validator/' . $name . '.js');

        $lang = i18n::get_lang_from_locale(i18n::get_locale());
        Requirements::javascript(ZENVALIDATOR_PATH . '/javascript/'.$parsleyFolder.'/i18n/' . $lang . '.extra.js');
    }
public function loadExtra ( $ name ) { $ useCurrent = ZenValidator :: config ( ) -> use_current ; $ parsleyFolder = 'parsley' ; if ( $ useCurrent ) { $ parsleyFolder = 'parsley_current' ; } Requirements :: javascript ( ZENVALIDATOR_PATH . '/javascript/' . $ parsleyFolder . '/extra/validator/' . $ name . '.js' ) ; $ lang = i18n :: get_lang_from_locale ( i18n :: get_locale ( ) ) ; Requirements :: javascript ( ZENVALIDATOR_PATH . '/javascript/' . $ parsleyFolder . '/i18n/' . $ lang . '.extra.js' ) ; }
Load extra validator
@param string $name
Load extra validator