list_locales October 05, 2012 / Updated: April 14, 2019
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.
Note: This script has been removed from the repository already as it will be an official included utility from ZenphotoCMS 1.5.2 on
This extension is included in the ZenphotoCMS release.