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

Print this page


   1 /*
   2  * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /*
  27  * (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
  28  * (C) Copyright IBM Corp. 1996 - 1998 - All Rights Reserved
  29  *
  30  * The original version of this source code and documentation
  31  * is copyrighted and owned by Taligent, Inc., a wholly-owned
  32  * subsidiary of IBM. These materials are provided under terms
  33  * of a License Agreement between Taligent and Sun. This technology
  34  * is protected by multiple US and International patents.
  35  *
  36  * This notice and attribution to Taligent may not be removed.
  37  * Taligent is a registered trademark of Taligent, Inc.
  38  *
  39  */
  40 
  41 package sun.text.resources.zh;
  42 
  43 import java.util.ListResourceBundle;
  44 import java.util.Locale;
  45 import java.util.ResourceBundle;
  46 import sun.util.locale.provider.LocaleProviderAdapter;
  47 import sun.util.locale.provider.ResourceBundleBasedAdapter;
  48 
  49 public class FormatData_zh_HK extends ListResourceBundle {
  50 
  51     // reparent to zh_TW for traditional Chinese names
  52     public FormatData_zh_HK() {
  53         ResourceBundle bundle = ((ResourceBundleBasedAdapter)LocaleProviderAdapter.forJRE())
  54             .getLocaleData().getDateFormatData(Locale.TAIWAN);
  55         setParent(bundle);
  56     }
  57 
  58     /**
  59      * Overrides ListResourceBundle
  60      */
  61     @Override
  62     protected final Object[][] getContents() {
  63         return new Object[][] {
  64             { "MonthAbbreviations",
  65                 new String[] {
  66                     "1\u6708", // abb january
  67                     "2\u6708", // abb february
  68                     "3\u6708", // abb march
  69                     "4\u6708", // abb april
  70                     "5\u6708", // abb may
  71                     "6\u6708", // abb june
  72                     "7\u6708", // abb july
  73                     "8\u6708", // abb august
  74                     "9\u6708", // abb september
  75                     "10\u6708", // abb october
  76                     "11\u6708", // abb november
  77                     "12\u6708", // abb december
  78                     "" // abb month 13 if applicable
  79                 }


   1 /*
   2  * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /*
  27  * (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
  28  * (C) Copyright IBM Corp. 1996 - 1998 - All Rights Reserved
  29  *
  30  * The original version of this source code and documentation
  31  * is copyrighted and owned by Taligent, Inc., a wholly-owned
  32  * subsidiary of IBM. These materials are provided under terms
  33  * of a License Agreement between Taligent and Sun. This technology
  34  * is protected by multiple US and International patents.
  35  *
  36  * This notice and attribution to Taligent may not be removed.
  37  * Taligent is a registered trademark of Taligent, Inc.
  38  *
  39  */
  40 
  41 package sun.text.resources.zh;
  42 
  43 import sun.util.resources.ParallelListResourceBundle;
  44 import java.util.Locale;
  45 import java.util.ResourceBundle;
  46 import sun.util.locale.provider.LocaleProviderAdapter;
  47 import sun.util.locale.provider.ResourceBundleBasedAdapter;
  48 
  49 public class FormatData_zh_HK extends ParallelListResourceBundle {
  50 
  51     // reparent to zh_TW for traditional Chinese names
  52     public FormatData_zh_HK() {
  53         ResourceBundle bundle = ((ResourceBundleBasedAdapter)LocaleProviderAdapter.forJRE())
  54             .getLocaleData().getDateFormatData(Locale.TAIWAN);
  55         setParent(bundle);
  56     }
  57 
  58     /**
  59      * Overrides ParallelListResourceBundle
  60      */
  61     @Override
  62     protected final Object[][] getContents() {
  63         return new Object[][] {
  64             { "MonthAbbreviations",
  65                 new String[] {
  66                     "1\u6708", // abb january
  67                     "2\u6708", // abb february
  68                     "3\u6708", // abb march
  69                     "4\u6708", // abb april
  70                     "5\u6708", // abb may
  71                     "6\u6708", // abb june
  72                     "7\u6708", // abb july
  73                     "8\u6708", // abb august
  74                     "9\u6708", // abb september
  75                     "10\u6708", // abb october
  76                     "11\u6708", // abb november
  77                     "12\u6708", // abb december
  78                     "" // abb month 13 if applicable
  79                 }