public function getFileName($countryCallingCode, $language, $script, $region)
{
if (strlen($language) == 0) {
return "";
}
if ($language === 'zh' && ($region == 'TW' || $region == 'HK' || $region == 'MO')) {
$language = 'zh_Hant';
}
// Loop through the $countryCallingCode and load the prefix
$prefixLength = strlen($countryCallingCode);
for ($i = $prefixLength; $i > 0; $i--) {
$prefix = substr($countryCallingCode, 0, $i);
if ($this->inMap($language, $prefix)) {
return $language . DIRECTORY_SEPARATOR . $prefix . '.php';
}
}
return "";
}