1 /*
   2  * Copyright (c) 1996, 2019, 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 - 1999 - 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 /*
  42  * COPYRIGHT AND PERMISSION NOTICE
  43  *
  44  * Copyright (C) 1991-2012 Unicode, Inc. All rights reserved. Distributed under
  45  * the Terms of Use in http://www.unicode.org/copyright.html.
  46  *
  47  * Permission is hereby granted, free of charge, to any person obtaining a copy
  48  * of the Unicode data files and any associated documentation (the "Data
  49  * Files") or Unicode software and any associated documentation (the
  50  * "Software") to deal in the Data Files or Software without restriction,
  51  * including without limitation the rights to use, copy, modify, merge,
  52  * publish, distribute, and/or sell copies of the Data Files or Software, and
  53  * to permit persons to whom the Data Files or Software are furnished to do so,
  54  * provided that (a) the above copyright notice(s) and this permission notice
  55  * appear with all copies of the Data Files or Software, (b) both the above
  56  * copyright notice(s) and this permission notice appear in associated
  57  * documentation, and (c) there is clear notice in each modified Data File or
  58  * in the Software as well as in the documentation associated with the Data
  59  * File(s) or Software that the data or software has been modified.
  60  *
  61  * THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
  62  * KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  63  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
  64  * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
  65  * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR
  66  * CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  67  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  68  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  69  * OF THE DATA FILES OR SOFTWARE.
  70  *
  71  * Except as contained in this notice, the name of a copyright holder shall not
  72  * be used in advertising or otherwise to promote the sale, use or other
  73  * dealings in these Data Files or Software without prior written authorization
  74  * of the copyright holder.
  75  */
  76 
  77 package sun.text.resources.ja;
  78 
  79 import sun.util.resources.ParallelListResourceBundle;
  80 
  81 public class FormatData_ja extends ParallelListResourceBundle {
  82     /**
  83      * Overrides ParallelListResourceBundle
  84      */
  85     @Override
  86     protected final Object[][] getContents() {
  87         // era strings for Japanese imperial calendar
  88         final String[] japaneseEras = {
  89             "\u897f\u66a6", // Seireki (Gregorian)
  90             "\u660e\u6cbb", // Meiji
  91             "\u5927\u6b63", // Taisho
  92             "\u662d\u548c", // Showa
  93             "\u5e73\u6210", // Heisei
  94             "\u5143\u53f7", // NewEra
  95         };
  96         final String[] rocEras = {
  97             "\u6c11\u56fd\u524d",
  98             "\u6c11\u56fd",
  99         };
 100         return new Object[][] {
 101             { "MonthNames",
 102                 new String[] {
 103                     "1\u6708", // january
 104                     "2\u6708", // february
 105                     "3\u6708", // march
 106                     "4\u6708", // april
 107                     "5\u6708", // may
 108                     "6\u6708", // june
 109                     "7\u6708", // july
 110                     "8\u6708", // august
 111                     "9\u6708", // september
 112                     "10\u6708", // october
 113                     "11\u6708", // november
 114                     "12\u6708", // december
 115                     ""          // month 13 if applicable
 116                 }
 117             },
 118             { "MonthAbbreviations",
 119                 new String[] {
 120                     "1", // abb january
 121                     "2", // abb february
 122                     "3", // abb march
 123                     "4", // abb april
 124                     "5", // abb may
 125                     "6", // abb june
 126                     "7", // abb july
 127                     "8", // abb august
 128                     "9", // abb september
 129                     "10", // abb october
 130                     "11", // abb november
 131                     "12", // abb december
 132                     ""    // abb month 13 if applicable
 133                 }
 134             },
 135             { "DayNames",
 136                 new String[] {
 137                     "\u65e5\u66dc\u65e5", // Sunday
 138                     "\u6708\u66dc\u65e5", // Monday
 139                     "\u706b\u66dc\u65e5", // Tuesday
 140                     "\u6c34\u66dc\u65e5", // Wednesday
 141                     "\u6728\u66dc\u65e5", // Thursday
 142                     "\u91d1\u66dc\u65e5", // Friday
 143                     "\u571f\u66dc\u65e5"  // Saturday
 144                 }
 145             },
 146             { "DayAbbreviations",
 147                 new String[] {
 148                     "\u65e5", // abb Sunday
 149                     "\u6708", // abb Monday
 150                     "\u706b", // abb Tuesday
 151                     "\u6c34", // abb Wednesday
 152                     "\u6728", // abb Thursday
 153                     "\u91d1", // abb Friday
 154                     "\u571f"  // abb Saturday
 155                 }
 156             },
 157             { "DayNarrows",
 158                 new String[] {
 159                     "\u65e5",
 160                     "\u6708",
 161                     "\u706b",
 162                     "\u6c34",
 163                     "\u6728",
 164                     "\u91d1",
 165                     "\u571f",
 166                 }
 167             },
 168             { "AmPmMarkers",
 169                 new String[] {
 170                     "\u5348\u524d", // am marker
 171                     "\u5348\u5f8c" // pm marker
 172                 }
 173             },
 174             { "Eras",
 175                 new String[] { // era strings for GregorianCalendar
 176                     "\u7d00\u5143\u524d",
 177                     "\u897f\u66a6"
 178                 }
 179             },
 180             { "buddhist.Eras",
 181                 new String[] { // era strings for Thai Buddhist calendar
 182                     "\u7d00\u5143\u524d", // Kigenzen
 183                     "\u4ecf\u66a6",       // Butsureki
 184                 }
 185             },
 186             { "japanese.Eras", japaneseEras },
 187             { "japanese.FirstYear",
 188                 new String[] {  // first year name
 189                     "\u5143",   // "Gan"-nen
 190                 }
 191             },
 192             { "NumberElements",
 193                 new String[] {
 194                     ".",        // decimal separator
 195                     ",",        // group (thousands) separator
 196                     ";",        // list separator
 197                     "%",        // percent sign
 198                     "0",        // native 0 digit
 199                     "#",        // pattern digit
 200                     "-",        // minus sign
 201                     "E",        // exponential
 202                     "\u2030",   // per mille
 203                     "\u221e",   // infinity
 204                     "\ufffd"    // NaN
 205                 }
 206             },
 207             { "TimePatterns",
 208                 new String[] {
 209                     "H'\u6642'mm'\u5206'ss'\u79d2' z", // full time pattern
 210                     "H:mm:ss z",                       // long time pattern
 211                     "H:mm:ss",                         // medium time pattern
 212                     "H:mm",                            // short time pattern
 213                 }
 214             },
 215             { "DatePatterns",
 216                 new String[] {
 217                     "yyyy'\u5e74'M'\u6708'd'\u65e5'",  // full date pattern
 218                     "yyyy/MM/dd",                      // long date pattern
 219                     "yyyy/MM/dd",                      // medium date pattern
 220                     "yy/MM/dd",                        // short date pattern
 221                 }
 222             },
 223             { "DateTimePatterns",
 224                 new String[] {
 225                     "{1} {0}"                          // date-time pattern
 226                 }
 227             },
 228             { "japanese.DatePatterns",
 229                 new String[] {
 230                     "GGGGyyyy'\u5e74'M'\u6708'd'\u65e5'", // full date pattern
 231                     "Gy.MM.dd",  // long date pattern
 232                     "Gy.MM.dd",  // medium date pattern
 233                     "Gy.MM.dd",  // short date pattern
 234                 }
 235             },
 236             { "japanese.TimePatterns",
 237                 new String[] {
 238                     "H'\u6642'mm'\u5206'ss'\u79d2' z", // full time pattern
 239                     "H:mm:ss z", // long time pattern
 240                     "H:mm:ss",   // medium time pattern
 241                     "H:mm",      // short time pattern
 242                 }
 243             },
 244             { "japanese.DateTimePatterns",
 245                 new String[] {
 246                     "{1} {0}"    // date-time pattern
 247                 }
 248             },
 249             { "DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ" },
 250         };
 251     }
 252 }
--- EOF ---