Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bobdenotter/locales

Locales and countrycodes, in a convenient list.
https://github.com/bobdenotter/locales

Last synced: 25 days ago
JSON representation

Locales and countrycodes, in a convenient list.

Awesome Lists containing this project

README

        

Locales, languages and countries
================================

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](https://github.com/bobdenotter/locales/blob/master/locales_list.txt).**

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