src/share/classes/sun/text/resources/th/FormatData_th.java

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)

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -36,29 +36,33 @@
  * This notice and attribution to Taligent may not be removed.
  * Taligent is a registered trademark of Taligent, Inc.
  *
  */
 
-package sun.text.resources;
+package sun.text.resources.th;
 
 import java.util.ListResourceBundle;
 
 public class FormatData_th extends ListResourceBundle {
     /**
      * Overrides ListResourceBundle
      */
     protected final Object[][] getContents() {
-        String[] dateTimePatterns = new String[] {
+        String[] timePatterns = new String[] {
             "H' \u0e19\u0e32\u0e2c\u0e34\u0e01\u0e32 'm' \u0e19\u0e32\u0e17\u0e35 'ss' \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35'", // full time pattern
             "H' \u0e19\u0e32\u0e2c\u0e34\u0e01\u0e32 'm' \u0e19\u0e32\u0e17\u0e35'", // long time pattern
             "H:mm:ss", // medium time pattern
             "H:mm' \u0e19.'",  // short time pattern (modified)  -- add ' \u0e19.'
                                // (it means something like "o'clock" in english)
+        };
+        String[] datePatterns = new String[] {
             "EEEE'\u0e17\u0e35\u0e48 'd MMMM G yyyy", // full date pattern
             "d MMMM yyyy", // long date pattern
             "d MMM yyyy", // medium date pattern
             "d/M/yyyy", // short date pattern
+        };
+        String[] dateTimePatterns = new String[] {
             "{1}, {0}" // date-time pattern
         };
 
         return new Object[][] {
             { "MonthNames",

@@ -121,17 +125,17 @@
                 new String[] {
                     "\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07", // am marker
                     "\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07" // pm marker
                 }
             },
-            { "sun.util.BuddhistCalendar.Eras",
+            { "buddhist.Eras",
                 new String[] { // era strings
                     "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48",
                     "\u0E1E.\u0E28." // Thai calendar requires equivalent of B.E., Buddhist Era
                 }
             },
-            { "sun.util.BuddhistCalendar.short.Eras",
+            { "buddhist.short.Eras",
                 new String[] { // era strings
                     "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48",
                     "\u0E1E.\u0E28." // Thai calendar requires equivalent of B.E., Buddhist Era
                 }
             },

@@ -139,13 +143,25 @@
                 new String[] { // era strings
                     "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48",
                     "\u0e04.\u0e28."
                 }
             },
-            { "sun.util.BuddhistCalendar.DateTimePatterns",
+            { "buddhist.TimePatterns",
+                timePatterns
+            },
+            { "buddhist.DatePatterns",
+                datePatterns
+            },
+            { "buddhist.DateTimePatterns",
                 dateTimePatterns
             },
+            { "TimePatterns",
+                timePatterns
+            },
+            { "DatePatterns",
+                datePatterns
+            },
             { "DateTimePatterns",
                 dateTimePatterns
             },
             { "DateTimePatternChars", "GanjkHmsSEDFwWxhKzZ" },
         };