寻找本地化国家,语言和地区名称的来源 [英] Seeking source for localized Countries, Languages and Region names
问题描述
我正在寻找世界上主要语言名称,国家/地区名称和地域名称的来源,这些语言本地化为一长列语言.
I seek a source for the world's main language names, country names, and territory names, localised into a long list of languages.
语言的本地化名称示例:
Example of localised names of languages:
EN EN English
EN ES Inglés
ES EN Spanish
ES ES Español
西南欧某个国家/地区的本地化名称示例:
Example of localised names of a certain country in south-west Europe:
ES ES España
ES FR Espagne
ES EN Spain
有什么想法可以从哪里获取/构建?
Any idea where can I take/build that from?
推荐答案
您可以在Unicode公共区域数据存储库(CLDR)中找到所需的信息:
You can find the information you are looking for in the Unicode Common Locale Data Repository (CLDR) here: http://cldr.unicode.org/
数据以XML格式提供,因此您需要将其导入数据库中.
Data is supplied in XML so you will need to import this into your database.
CLDR为语言名称和
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.
基础CLDR数据为XML格式.您要查找的语言和地区名称位于目录 repos/cldr/trunk/common/main/中,每种语言都有一个XML文件,其中包含各种语言的名称以及本地化为该语言的地区.例如,文件 es.xml
具有西班牙语的语言名称("español",inglés")和国家(España").
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").
这篇关于寻找本地化国家,语言和地区名称的来源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!