< prev index next >

src/share/classes/sun/text/resources/ja/FormatData_ja.java

Print this page


   1 /*
   2  * Copyright (c) 1996, 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


  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         };
  95         final String[] rocEras = {
  96             "\u6c11\u56fd\u524d",
  97             "\u6c11\u56fd",
  98         };
  99         return new Object[][] {
 100             { "MonthNames",
 101                 new String[] {
 102                     "1\u6708", // january
 103                     "2\u6708", // february
 104                     "3\u6708", // march
 105                     "4\u6708", // april
 106                     "5\u6708", // may
 107                     "6\u6708", // june
 108                     "7\u6708", // july
 109                     "8\u6708", // august
 110                     "9\u6708", // september
 111                     "10\u6708", // october
 112                     "11\u6708", // november
 113                     "12\u6708", // december


   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


  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


< prev index next >