缺少Java中的语言环境?

缺少Java中的语言环境?

问题描述:

我在java语言环境中找到了许多缺少的国家/ - 如果我打印出可用语言环境列表,

I've found a number of missing countries in java locales- If I print out a list of available locales,

TreeSet< String > m = new TreeSet< String >();
for ( Locale l : Locale.getAvailableLocales() ) {
    m.add( l.getDisplayCountry() );
}
for ( String s : m ) {
    System.out.println( s );
}

我遗失了一些国家,包括尼日利亚,伊朗,吉尔吉斯斯坦,和巴基斯坦。任何人都可以对此有所了解,或者是否有更好(更全面)的方式来获取java中的国家/地区列表?

I'm missing a number of countries, including Nigeria, Iran, Kyrgyzstan, and Pakistan. Can anyone shed any light on this, or is there a better(more comprehensive) way of getting a country list in java?

1.6.0_16-b01

1.6.0_16-b01

世界各国和地区之间没有一对一的映射。区域设置指定区域。它们旨在标记语言多样性等内容。只是一个澄清的例子:印度,斯里兰卡,巴基斯坦,孟加拉国都是不同的国家......但他们使用英语的方式在任何重要方面都没有什么不同......人口统计的东西......所有这些国家都可以依赖于印度语语言环境

there is no one-to-one mapping between countries in the world and the locales. Locales specify regions. They are meant to mark things like language diversity. Just a clarifying example : India, Sri Lanka, Pakistan , Bangladesh are all different countries..but the way they use the english language is not different in any significant way..its a demographic thing..so all these countries could depends on the indian locale