8

standard function to translate iso-631 codes to language name?

view full story
linux-howto

http://stackoverflow.com – I guess there should be some standard method for this, just to avoid everybody retyping dull constants for their applications. ;) I am looking for a function (usable in a php web app on linux) that can take two ISO639 language codes and returns the name of the first language in the second language, i.e. foo("fr","de") should return "französisch" and foo("de","fr") should return "allemagne". Is there? (HowTos)