isLocaleValid() 정적인 공개 메소드

Check if the supplied locale is currently installable.
static public isLocaleValid ( $locale ) : boolean
$locale string
리턴 boolean
예제 #1
0
 function getMainEmailTemplateDataFilename($locale = null)
 {
     if ($locale !== null && !PKPLocale::isLocaleValid($locale)) {
         return null;
     }
     if ($locale === null) {
         $locale = '{$installedLocale}';
     }
     return "locale/{$locale}/emailTemplates.xml";
 }