original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Internal function for checking the locale
  
  @param string|Zend_Locale $locale Locale to check
  @return string
docstring_tokens: Internal function for checking the locale