Displaying Locale Name as Chinese(Simplified) or Chinese (Traditional)

Locale class returns a name for the locale appropriate to be displayed to the user using getDisplayLanguage method. But this returns "Chinese(China)" for zh_CN locale, and "Chinese(Taiwan)" for zh_TW locale. Is there a way to get "Chinese (Simplified)" and "Chinese (Traditional)" respectively, instead?

I am using Java SE 5 and displaying each locale's display name in its own localized version.

Thanks.

[439 byte] By [Rahul.Joshia] at [2007-11-27 1:07:24]
# 1

What you are getting right now is correct for those 2 locales - the 2 parts of the locale are language and region.

If you want the script identifier instead you probably need to look at ICU4J - here, for instance:

http://www.icu-project.org/apiref/icu4j/com/ibm/icu/util/ULocale.html#getDisplayScript()

one_danea at 2007-7-11 23:42:38 > top of Java-index,Desktop,I18N...