PHP returns Accept-Languages ββ($ _SERVER ['HTTP_ACCEPT_LANGUAGE']) in the format "en-US", "en", "de-AT". How to convert them to a more readable format?
"en-US" -> "English USA" "de-AT" -> "Γsterreichisch"
Is there a general way / function or do I need to search for a database (what is called this format - is it ISO 639-1 with an optional region ?!)?
source share