Print this page
rev 5615 : 6336885: RFE: Locale Data Deployment Enhancements
4609153: Provide locale data for Indic locales
5104387: Support for gl_ES locale (galician language)
6337471: desktop/system locale preferences support
7056139: (cal) SPI support for locale-dependent Calendar parameters
7058206: Provide CalendarData SPI for week params and display field value names
7073852: Support multiple scripts for digits and decimal symbols per locale
7079560: [Fmt-Da] Context dependent month names support in SimpleDateFormat
7171324: getAvailableLocales() of locale sensitive services should return the actual availability of locales
7151414: (cal) Support calendar type identification
7168528: LocaleServiceProvider needs to be aware of Locale extensions
7171372: (cal) locale's default Calendar should be created if unknown calendar is specified
Summary: JEP 127: Improve Locale Data Packaging and Adopt Unicode CLDR Data (part 1 w/o Jigsaw. by Naoto Sato and Masayoshi Okutsu)
Split |
Close |
Expand all |
Collapse all |
--- old/src/share/classes/sun/text/resources/FormatData_zh_HK.java
+++ new/src/share/classes/sun/text/resources/zh/FormatData_zh_HK.java
1 1 /*
2 - * Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved.
2 + * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 4 *
5 5 * This code is free software; you can redistribute it and/or modify it
6 6 * under the terms of the GNU General Public License version 2 only, as
7 7 * published by the Free Software Foundation. Oracle designates this
8 8 * particular file as subject to the "Classpath" exception as provided
9 9 * by Oracle in the LICENSE file that accompanied this code.
10 10 *
11 11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 14 * version 2 for more details (a copy is included in the LICENSE file that
15 15 * accompanied this code).
16 16 *
17 17 * You should have received a copy of the GNU General Public License version
18 18 * 2 along with this work; if not, write to the Free Software Foundation,
19 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 20 *
21 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 22 * or visit www.oracle.com if you need additional information or have any
23 23 * questions.
24 24 */
25 25
26 26 /*
27 27 * (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
28 28 * (C) Copyright IBM Corp. 1996 - 1998 - All Rights Reserved
29 29 *
30 30 * The original version of this source code and documentation
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
31 31 * is copyrighted and owned by Taligent, Inc., a wholly-owned
32 32 * subsidiary of IBM. These materials are provided under terms
33 33 * of a License Agreement between Taligent and Sun. This technology
34 34 * is protected by multiple US and International patents.
35 35 *
36 36 * This notice and attribution to Taligent may not be removed.
37 37 * Taligent is a registered trademark of Taligent, Inc.
38 38 *
39 39 */
40 40
41 -package sun.text.resources;
41 +package sun.text.resources.zh;
42 42
43 43 import java.util.ListResourceBundle;
44 44 import java.util.Locale;
45 45 import java.util.ResourceBundle;
46 -import sun.util.resources.LocaleData;
46 +import sun.util.locale.provider.LocaleProviderAdapter;
47 47
48 48 public class FormatData_zh_HK extends ListResourceBundle {
49 49
50 50 // reparent to zh_TW for traditional Chinese names
51 51 public FormatData_zh_HK() {
52 - ResourceBundle bundle = LocaleData.getDateFormatData(Locale.TAIWAN);
52 + ResourceBundle bundle = LocaleProviderAdapter.forJRE().getLocaleData().getDateFormatData(Locale.TAIWAN);
53 53 setParent(bundle);
54 54 }
55 55
56 56 /**
57 57 * Overrides ListResourceBundle
58 58 */
59 + @Override
59 60 protected final Object[][] getContents() {
60 61 return new Object[][] {
61 62 { "MonthAbbreviations",
62 63 new String[] {
63 64 "1\u6708", // abb january
64 65 "2\u6708", // abb february
65 66 "3\u6708", // abb march
66 67 "4\u6708", // abb april
67 68 "5\u6708", // abb may
68 69 "6\u6708", // abb june
69 70 "7\u6708", // abb july
70 71 "8\u6708", // abb august
71 72 "9\u6708", // abb september
72 73 "10\u6708", // abb october
73 74 "11\u6708", // abb november
74 75 "12\u6708", // abb december
75 76 "" // abb month 13 if applicable
76 77 }
77 78 },
78 79 { "DayAbbreviations",
79 80 new String[] {
80 81 "\u65e5", // abb Sunday
81 82 "\u4e00", // abb Monday
82 83 "\u4e8c", // abb Tuesday
83 84 "\u4e09", // abb Wednesday
84 85 "\u56db", // abb Thursday
85 86 "\u4e94", // abb Friday
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
86 87 "\u516d" // abb Saturday
87 88 }
88 89 },
89 90 { "NumberPatterns",
90 91 new String[] {
91 92 "#,##0.###;-#,##0.###", // decimal pattern
92 93 "\u00A4#,##0.00;(\u00A4#,##0.00)", // currency pattern
93 94 "#,##0%" // percent pattern
94 95 }
95 96 },
96 - { "DateTimePatterns",
97 + { "TimePatterns",
97 98 new String[] {
98 99 "ahh'\u6642'mm'\u5206'ss'\u79d2' z", // full time pattern
99 100 "ahh'\u6642'mm'\u5206'ss'\u79d2'", // long time pattern
100 101 "ahh:mm:ss", // medium time pattern
101 102 "ah:mm", // short time pattern
103 + }
104 + },
105 + { "DatePatterns",
106 + new String[] {
102 107 "yyyy'\u5e74'MM'\u6708'dd'\u65e5' EEEE", // full date pattern
103 108 "yyyy'\u5e74'MM'\u6708'dd'\u65e5' EEEE", // long date pattern
104 109 "yyyy'\u5e74'M'\u6708'd'\u65e5'", // medium date pattern
105 110 "yy'\u5e74'M'\u6708'd'\u65e5'", // short date pattern
111 + }
112 + },
113 + { "DateTimePatterns",
114 + new String[] {
106 115 "{1} {0}" // date-time pattern
107 116 }
108 117 },
109 118 { "DateTimePatternChars", "GanjkHmsSEDFwWxhKzZ" },
110 119 };
111 120 }
112 121 }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX