hexorx/countries — pull request #25 by easychris (2012-05-22 00:20:50+00:00)
Title: Added languages support

Added language information to each country. For some countries it's difficult to determine the official language but I did my best to figure that out.

I used Wikipedia as the source:
Mainly this list:
http://en.wikipedia.org/wiki/List_of_official_languages_by_state
When that list was confusing or unclear I checked directly with Wikipedia

Language is returned as [ISO 639-1](http://de.wikipedia.org/wiki/ISO_639#ISO_639-1) (two-letter) language code (e.g. **en**, **de**). Therefore any languages or dialects not included in ISO 639-1 are missing. This concerns roughly a lot of Chinese and African dialects.

The languages added to each country are not a complete list of which languages are spoken in that country. It's rather a list of official and semi-official spoken languages. The official languages are put at the top of the array so that country.languages[0] should return the official (or if more than one official language exists, the most widely used) language.

My personal use case for this is to match my supported languages with the country of our customers (which did not register and explicitly selected a language).