private static function _checkLocale($locale)
    {
        if (empty($locale)) {
            $locale = new Zend_Locale();
        }

        if (!(Zend_Locale::isLocale((string) $locale, null, false))) {

            throw new Zend_Locale_Exception("Locale (" . (string) $locale . ") is a unknown locale");
        }

        return (string) $locale;
    }
private static function _checkLocale($locale)
    {
        if (empty($locale)) {
            $locale = new Zend_Locale();
        }

        if (!(Zend_Locale::isLocale((string) $locale, null, false))) {

            throw new Zend_Locale_Exception("Locale (" . (string) $locale . ") is a unknown locale");
        }

        return (string) $locale;
    }
private static function _checkLocale ( $ locale ) { if ( empty ( $ locale ) ) { $ locale = new Zend_Locale ( ) ; } if ( ! ( Zend_Locale :: isLocale ( ( string ) $ locale , null , false ) ) ) { throw new Zend_Locale_Exception ( "Locale (" . ( string ) $ locale . ") is a unknown locale" ) ; } return ( string ) $ locale ; }
Internal function for checking the locale

@param string|Zend_Locale $locale Locale to check
@return string
Internal function for checking the locale