|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2018-05-23 (6 months ago) ||Not enough user ratings||Total: 228 This week: 1||All time: 7,884 This week: 392|
This class can determine locale language from country code.
It can take the code of a country and converts it to the locale name that identifies the country and language used in that country.
For countries that use different languages, it returns a string with all locale names separated by commas.
|Locale is the definition of settings that change from country to country, like the language and the way to format values like time, dates and money amounts.
Each locale has a name string formed by the country and the language or languages associated with that country.
This class can determine which locales are associated with each country and returns a string with the names of the country locales.
Determine locale from 2-letter country code. (Can be used as language code.)
echo locale::country2locale('DE'); # 'de_DE'
echo locale::country2locale('CN'); # 'zh_CN'
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.