This is a simple script to get a list of the locales and countrycodes available for functions like PHP's strftime()
.
I've been looking for a convenient list of the common ones, but I couldn't find one. So, I made one myself.
The current list is here: List of Locales, languages and countrycodes.
usage:
php locales.php > output.txt
Feel free to email/pullrequest me the output from your system, so I can add them to the 'big list'.
References:
- http://www.codekites.com/php-get-list-of-locales-installed-on-system/
- http://en.wikipedia.org/wiki/ISO_3166-1#Officially_assigned_code_elements
- http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
- http://blog.xoundboy.com/?p=235
- http://lh.2xlibre.net/locales/
- http://www.ethnologue.com/codes/LanguageIndex.tab / http://www.ethnologue.com/codes/CountryCodes.tab / http://www.ethnologue.com/codes/LanguageCodes.tab