/** * Translate the PKP locale identifier into an * ISO639-3 compatible 3-letter string. * @param $locale string * @return string */ function getIso3FromLocale($locale) { assert(strlen($locale) == 5); $iso1 = substr($locale, 0, 2); return AppLocale::getIso3FromIso1($iso1); }