system-locale 列表,是拥有具体 LCID 数值的那些 locale,包含了日常常见的 <language>-<country> 条目,比如 en-US (LCID=0x0409), zh-CN (LCID=0x0804) 等。 user-locale 列表多出的那些条目,是一些不常见、或近几年刚冒出的 <language>-<country> ,比如,zh-Hans-HK (语言是简体中文,但地区设成香港),...
Thelanguage[_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 inLanguage strings, and the list of supporte...
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 ...
Localerefers to country/region and language settings that you can use to customize your program. Some locale-dependent categories include the display formats for dates and monetary values. For more information, seeLocale categories. Use thesetlocalefunction to change or query some or all of the cur...
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, see Locale Categories.Use...
您还可以使用Locale.Builder类来创建Locale对象。这个类只有一个构造函数,不带任何参数。您必须使用一系列setter方法来指定language、country和variant。 Localelocale=newLocale.Builder().setLanguage("de").setRegion("CA").build(); 使用Locale.forLanguageTag工厂方法 ...
Locale(String language) Locale(String language, String country) Locale(String language, String country, String variant) Object clone() boolean equals(Object object) static Locale[] getAvailableLocales() String getCountry() static Locale getDefault() ...
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....
A locale can be composed of both a base language,thecountry (territory) of use, and possibly codeset (which is usually assumed). For example, German isde, an abbreviation for Deutsch, while Swiss German isde_CH,CHbeing an abbreviation for Confederation Helvetica. This allows for specific differ...
Localerefers to country/region and language settings that you can use to customize your program. Some locale-dependent categories include the display formats for dates and monetary values. For more information, seeLocale categories. Use thesetlocalefunction to change or query some or all of the cur...