Example #1
0
 /**
  * Validates the given locale
  * 
  * @param string $locale - locale to validate
  * @throws Translatable\Exception if locale is not valid
  * @return void
  */
 protected function _validateLocale($locale)
 {
     if (!is_string($locale) || !strlen($locale)) {
         throw Exception::undefinedLocale();
     }
 }