static function getIso1FromLocale($locale) { assert(strlen($locale) == 5); return substr($locale, 0, 2); }