Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bobdenotter/locales
- Owner: bobdenotter
- Created: 2013-02-17T15:11:26.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-10-29T10:01:31.000Z (about 8 years ago)
- Last Synced: 2024-05-01T20:38:29.272Z (6 months ago)
- Language: PHP
- Size: 26.4 KB
- Stars: 8
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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