system-locale 列表,是拥有具体 LCID 数值的那些 locale,包含了日常常见的 <language>-<country> 条目,比如 en-US (LCID=0x0409), zh-CN (LCID=0x0804) 等。 user-locale 列表多出的那些条目,是一些不常见、或近几年刚冒出的 <language>-<country> ,比如,zh-Hans-HK (语言是简体中文,但地区设成香港),...
country:国家,指定语言的国家版本。 比如:US,CA等等。 variant:个人把这个理解为类别,比如有四川话,湖南话等等,但都是中文。 publicLocale(Stringlanguage,Stringcountry,Stringvariant){if(language==null||country==null||variant==null){thrownewNullPointerException();}baseLocale=BaseLocale.getInstance(convertOldI...
The language[_country-region[.code-page]] form is stored in the locale setting for a category when a language string, or language string and country or region string, is used to create the locale. The set of supported language strings is described in Language strings, and the list of supp...
Locale(String language) Locale(String language, String country) Locale(String language, String country, String variant) 其中“language”和“country”是指语言编码和国家编码,这一点可以从Java的API找到Locale中查看指定的网址,也可以从浏览器中查看: 【工具】--->【Internet选项】--->【常规】--->【语言】...
A locale is a collection of settings for the user's environment, such as language, country/region, and script. The user's locale allows the operating system or applications to use the appropriate conventions such as sort order; keyboard layout; and date, time, number, and currency formats. ...
您还可以使用Locale.Builder类来创建Locale对象。这个类只有一个构造函数,不带任何参数。您必须使用一系列setter方法来指定language、country和variant。 Localelocale=newLocale.Builder().setLanguage("de").setRegion("CA").build(); 使用Locale.forLanguageTag工厂方法 ...
Locale.getDefault().getDisplayCountry() ---> United States Locale.getDefault().getDisplayName() ---> English (United States) Locale.getDefault().toString() ---> en_US Locale.getDefault().getDisplayLanguage()---> English 四、Locale匹配 如果应用程序或系统国际化并为多个Locale提供本地化资源...
LOCALE_SENGCOUNTRY 已弃用 Windows 7 及更高版本。 国家/地区的全英文名称。 请参阅 LOCALE_SENGLISHCOUNTRYNAME。 LOCALE_SENGCURRNAME Windows Me/98、Windows 2000: 与区域设置关联的货币的完整英文名称。 此字符串允许的字符数没有限制。 LOCALE_SENGLANGUAGE 已弃用 Windows 7 及更高版本。 ISO 标准 639 中...
01.02.2013 The "Locale" refers to the locality (the Country/Region, and language) for which you can customize certain aspects of your program. Some locale-dependent categories include the formatting of dates and the display format for monetary values. For more information, seeLocale Categories. ...
Print Microsoft Locale ID Values Article 10/07/2008 Microsoft Locale ID Values Expand table LanguageCountry/RegionLocale ID AfrikaansSouth Africa1078 AlbanianAlbania1052 ArabicAlgeria5121 ArabicBahrain15361 ArabicEgypt3073 ArabicIraq2049 ArabicJordan11265 ...