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_ja.java
          +++ new/src/share/classes/sun/text/resources/ja/FormatData_ja.java
   1    1  /*
   2      - * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved.
        2 + * Copyright (c) 1996, 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
↓ 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.ja;
  42   42  
  43   43  import java.util.ListResourceBundle;
  44   44  
  45   45  public class FormatData_ja extends ListResourceBundle {
  46   46      /**
  47   47       * Overrides ListResourceBundle
  48   48       */
  49   49      protected final Object[][] getContents() {
  50   50          return new Object[][] {
  51   51              { "MonthNames",
↓ open down ↓ 57 lines elided ↑ open up ↑
 109  109                      "\u5348\u524d", // am marker
 110  110                      "\u5348\u5f8c" // pm marker
 111  111                  }
 112  112              },
 113  113              { "Eras",
 114  114                  new String[] { // era strings for GregorianCalendar
 115  115                      "\u7d00\u5143\u524d",
 116  116                      "\u897f\u66a6"
 117  117                  }
 118  118              },
 119      -            { "sun.util.BuddhistCalendar.Eras",
      119 +            { "buddhist.Eras",
 120  120                  new String[] { // era strings for Thai Buddhist calendar
 121  121                      "\u7d00\u5143\u524d", // Kigenzen
 122  122                      "\u4ecf\u66a6",       // Butsureki
 123  123                  }
 124  124              },
 125      -            { "java.util.JapaneseImperialCalendar.Eras",
      125 +            { "japanese.Eras",
 126  126                  new String[] { // era strings for Japanese imperial calendar
 127  127                      "\u897f\u66a6",     // Seireki (Gregorian)
 128  128                      "\u660e\u6cbb",     // Meiji
 129  129                      "\u5927\u6b63",     // Taisho
 130  130                      "\u662d\u548c",     // Showa
 131  131                      "\u5e73\u6210",     // Heisei
 132  132                  }
 133  133              },
 134      -            { "java.util.JapaneseImperialCalendar.FirstYear",
      134 +            { "japanese.FirstYear",
 135  135                  new String[] {  // first year name
 136  136                      "\u5143",   // "Gan"-nen
 137  137                  }
 138  138              },
 139  139              { "NumberElements",
 140  140                  new String[] {
 141  141                      ".",        // decimal separator
 142  142                      ",",        // group (thousands) separator
 143  143                      ";",        // list separator
 144  144                      "%",        // percent sign
 145  145                      "0",        // native 0 digit
 146  146                      "#",        // pattern digit
 147  147                      "-",        // minus sign
 148  148                      "E",        // exponential
 149  149                      "\u2030",   // per mille
 150  150                      "\u221e",   // infinity
 151  151                      "\ufffd"    // NaN
 152  152                  }
 153  153              },
 154      -            { "DateTimePatterns",
      154 +            { "TimePatterns",
 155  155                  new String[] {
 156  156                      "H'\u6642'mm'\u5206'ss'\u79d2' z", // full time pattern
 157  157                      "H:mm:ss z",                       // long time pattern
 158  158                      "H:mm:ss",                         // medium time pattern
 159  159                      "H:mm",                            // short time pattern
      160 +                }
      161 +            },
      162 +            { "DatePatterns",
      163 +                new String[] {
 160  164                      "yyyy'\u5e74'M'\u6708'd'\u65e5'",  // full date pattern
 161  165                      "yyyy/MM/dd",                      // long date pattern
 162  166                      "yyyy/MM/dd",                      // medium date pattern
 163  167                      "yy/MM/dd",                        // short date pattern
      168 +                }
      169 +            },
      170 +            { "DateTimePatterns",
      171 +                new String[] {
 164  172                      "{1} {0}"                          // date-time pattern
 165  173                  }
 166  174              },
 167      -            { "java.util.JapaneseImperialCalendar.DateTimePatterns",
      175 +            { "japanese.DatePatterns",
 168  176                  new String[] {
 169      -                    "H'\u6642'mm'\u5206'ss'\u79d2' z", // full time pattern
 170      -                    "H:mm:ss z", // long time pattern
 171      -                    "H:mm:ss",   // medium time pattern
 172      -                    "H:mm",      // short time pattern
 173  177                      "GGGGyyyy'\u5e74'M'\u6708'd'\u65e5'", // full date pattern
 174  178                      "Gy.MM.dd",  // long date pattern
 175  179                      "Gy.MM.dd",  // medium date pattern
 176  180                      "Gy.MM.dd",  // short date pattern
      181 +                }
      182 +            },
      183 +            { "japanese.TimePatterns",
      184 +                new String[] {
      185 +                    "H'\u6642'mm'\u5206'ss'\u79d2' z", // full time pattern
      186 +                    "H:mm:ss z", // long time pattern
      187 +                    "H:mm:ss",   // medium time pattern
      188 +                    "H:mm",      // short time pattern
      189 +                }
      190 +            },
      191 +            { "japanese.DateTimePatterns",
      192 +                new String[] {
 177  193                      "{1} {0}"    // date-time pattern
 178  194                  }
 179  195              },
 180  196              { "DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ" },
 181  197          };
 182  198      }
 183  199  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX