Determine locale from country code.
use peterkahl\locale\locale; echo locale::country2locale('hk')."\n"; echo locale::country2locale('DE')."\n"; echo locale::country2locale('gb')."\n"; /* Prints: zh_HK,en_HK de_DE en_GB,ga_GB,cy_GB,gd_GB,kw_GB */
info at phpclasses dot org