list_locales Oct 05, 2012
This function will parse a given HTTP Accepted language instruction(or retrieve it from $_SERVER if not provided) and will return a sorted array. For example, it will parse fr;en-us;q=0.8
Thanks to Fredbird.org for this code.
Please note: It is not possible to download individual extensions from the GitHub repository. You have to download the full repository (click on ZIP) and sort out what you need yourself.