src/share/classes/sun/text/resources/zh/FormatData_zh_HK.java

Print this page
rev 5696 : 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 packaging changes. by Naoto Sato and Masayoshi Okutsu)

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -36,28 +36,29 @@
  * This notice and attribution to Taligent may not be removed.
  * Taligent is a registered trademark of Taligent, Inc.
  *
  */
 
-package sun.text.resources;
+package sun.text.resources.zh;
 
 import java.util.ListResourceBundle;
 import java.util.Locale;
 import java.util.ResourceBundle;
-import sun.util.resources.LocaleData;
+import sun.util.locale.provider.LocaleProviderAdapter;
 
 public class FormatData_zh_HK extends ListResourceBundle {
 
     // reparent to zh_TW for traditional Chinese names
     public FormatData_zh_HK() {
-        ResourceBundle bundle = LocaleData.getDateFormatData(Locale.TAIWAN);
+        ResourceBundle bundle = LocaleProviderAdapter.forJRE().getLocaleData().getDateFormatData(Locale.TAIWAN);
         setParent(bundle);
     }
 
     /**
      * Overrides ListResourceBundle
      */
+    @Override
     protected final Object[][] getContents() {
         return new Object[][] {
             { "MonthAbbreviations",
                 new String[] {
                     "1\u6708", // abb january

@@ -91,20 +92,28 @@
                     "#,##0.###;-#,##0.###", // decimal pattern
                     "\u00A4#,##0.00;(\u00A4#,##0.00)", // currency pattern
                     "#,##0%" // percent pattern
                 }
             },
-            { "DateTimePatterns",
+            { "TimePatterns",
                 new String[] {
                     "ahh'\u6642'mm'\u5206'ss'\u79d2' z", // full time pattern
                     "ahh'\u6642'mm'\u5206'ss'\u79d2'", // long time pattern
                     "ahh:mm:ss", // medium time pattern
                     "ah:mm", // short time pattern
+                }
+            },
+            { "DatePatterns",
+                new String[] {
                     "yyyy'\u5e74'MM'\u6708'dd'\u65e5' EEEE", // full date pattern
                     "yyyy'\u5e74'MM'\u6708'dd'\u65e5' EEEE", // long date pattern
                     "yyyy'\u5e74'M'\u6708'd'\u65e5'", // medium date pattern
                     "yy'\u5e74'M'\u6708'd'\u65e5'", // short date pattern
+                }
+            },
+            { "DateTimePatterns",
+                new String[] {
                     "{1} {0}" // date-time pattern
                 }
             },
             { "DateTimePatternChars", "GanjkHmsSEDFwWxhKzZ" },
         };