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_th.java
          +++ new/src/share/classes/sun/text/resources/th/FormatData_th.java
   1    1  /*
   2      - * Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved.
        2 + * Copyright (c) 1998, 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.th;
  42   42  
  43   43  import java.util.ListResourceBundle;
  44   44  
  45   45  public class FormatData_th extends ListResourceBundle {
  46   46      /**
  47   47       * Overrides ListResourceBundle
  48   48       */
  49   49      protected final Object[][] getContents() {
  50      -        String[] dateTimePatterns = new String[] {
       50 +        String[] timePatterns = new String[] {
  51   51              "H' \u0e19\u0e32\u0e2c\u0e34\u0e01\u0e32 'm' \u0e19\u0e32\u0e17\u0e35 'ss' \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35'", // full time pattern
  52   52              "H' \u0e19\u0e32\u0e2c\u0e34\u0e01\u0e32 'm' \u0e19\u0e32\u0e17\u0e35'", // long time pattern
  53   53              "H:mm:ss", // medium time pattern
  54   54              "H:mm' \u0e19.'",  // short time pattern (modified)  -- add ' \u0e19.'
  55   55                                 // (it means something like "o'clock" in english)
       56 +        };
       57 +        String[] datePatterns = new String[] {
  56   58              "EEEE'\u0e17\u0e35\u0e48 'd MMMM G yyyy", // full date pattern
  57   59              "d MMMM yyyy", // long date pattern
  58   60              "d MMM yyyy", // medium date pattern
  59   61              "d/M/yyyy", // short date pattern
       62 +        };
       63 +        String[] dateTimePatterns = new String[] {
  60   64              "{1}, {0}" // date-time pattern
  61   65          };
  62   66  
  63   67          return new Object[][] {
  64   68              { "MonthNames",
  65   69                  new String[] {
  66   70                      "\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21", // january
  67   71                      "\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c", // february
  68   72                      "\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21", // march
  69   73                      "\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19", // april
↓ open down ↓ 46 lines elided ↑ open up ↑
 116  120                      "\u0e28.", // abb Friday
 117  121                      "\u0e2a." // abb Saturday
 118  122                  }
 119  123              },
 120  124              { "AmPmMarkers",
 121  125                  new String[] {
 122  126                      "\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07", // am marker
 123  127                      "\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07" // pm marker
 124  128                  }
 125  129              },
 126      -            { "sun.util.BuddhistCalendar.Eras",
      130 +            { "buddhist.Eras",
 127  131                  new String[] { // era strings
 128  132                      "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48",
 129  133                      "\u0E1E.\u0E28." // Thai calendar requires equivalent of B.E., Buddhist Era
 130  134                  }
 131  135              },
 132      -            { "sun.util.BuddhistCalendar.short.Eras",
      136 +            { "buddhist.short.Eras",
 133  137                  new String[] { // era strings
 134  138                      "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48",
 135  139                      "\u0E1E.\u0E28." // Thai calendar requires equivalent of B.E., Buddhist Era
 136  140                  }
 137  141              },
 138  142              { "Eras",
 139  143                  new String[] { // era strings
 140  144                      "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48",
 141  145                      "\u0e04.\u0e28."
 142  146                  }
 143  147              },
 144      -            { "sun.util.BuddhistCalendar.DateTimePatterns",
      148 +            { "buddhist.TimePatterns",
      149 +                timePatterns
      150 +            },
      151 +            { "buddhist.DatePatterns",
      152 +                datePatterns
      153 +            },
      154 +            { "buddhist.DateTimePatterns",
 145  155                  dateTimePatterns
 146  156              },
      157 +            { "TimePatterns",
      158 +                timePatterns
      159 +            },
      160 +            { "DatePatterns",
      161 +                datePatterns
      162 +            },
 147  163              { "DateTimePatterns",
 148  164                  dateTimePatterns
 149  165              },
 150  166              { "DateTimePatternChars", "GanjkHmsSEDFwWxhKzZ" },
 151  167          };
 152  168      }
 153  169  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX