thirdparty/Zend/Validate/Abstract.php
public static function getDefaultTranslator()
    {
        if (null === self::$_defaultTranslator) {
            require_once 'Zend/Registry.php';
            if (Zend_Registry::isRegistered('Zend_Translate')) {
                $translator = Zend_Registry::get('Zend_Translate');
                if ($translator instanceof Zend_Translate_Adapter) {
                    return $translator;
                } elseif ($translator instanceof Zend_Translate) {
                    return $translator->getAdapter();
                }
            }
        }

        return self::$_defaultTranslator;
    }
public static function getDefaultTranslator()
    {
        if (null === self::$_defaultTranslator) {
            require_once 'Zend/Registry.php';
            if (Zend_Registry::isRegistered('Zend_Translate')) {
                $translator = Zend_Registry::get('Zend_Translate');
                if ($translator instanceof Zend_Translate_Adapter) {
                    return $translator;
                } elseif ($translator instanceof Zend_Translate) {
                    return $translator->getAdapter();
                }
            }
        }

        return self::$_defaultTranslator;
    }
public static function getDefaultTranslator ( ) { if ( null === self :: $ _defaultTranslator ) { require_once 'Zend/Registry.php' ; if ( Zend_Registry :: isRegistered ( 'Zend_Translate' ) ) { $ translator = Zend_Registry :: get ( 'Zend_Translate' ) ; if ( $ translator instanceof Zend_Translate_Adapter ) { return $ translator ; } elseif ( $ translator instanceof Zend_Translate ) { return $ translator -> getAdapter ( ) ; } } } return self :: $ _defaultTranslator ; }
Get default translation object for all validate objects

@return Zend_Translate_Adapter|null
Get default translation object for all validate objects