Seeking source for localized Countries, Languages and Region names

荒凉一梦 提交于 2019-12-05 07:06:27
Brendan Clavin

You can find the information you are looking for in the Unicode Common Locale Data Repository (CLDR) here: http://cldr.unicode.org/

Data is supplied in XML so you will need to import this into your database.

The CLDR publishes human-readable charts for language names and territory (country, continent, etc.) names. In each, there is a section for each language or territory, identified by a standardised code. Then the rows of each section give a localised name, and codes for the languages which use that localised name to refer to the language or territory.

The underlying CLDR data is in XML form. The language and territory names you seek are in directory, repos/cldr/trunk/common/main/, with an XML file for each language, containing the names for various languages and territories localised into that language. For instance, the file es.xml has the Spanish-language names for languages ("español", "inglés") and countries ("España").

For country names, you can use geonames, for example here is a list of alternate names for the south west European country. Geonames has an api and data dump that you can use in your programs.

For language names, this list could be useful

user1974729

HERE is a database in multiple formats. Best of luck learning all those languages in their local slang.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!