1 /*
   2  * Copyright (c) 1998, 2012, 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 - 1998 - 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 package sun.text.resources.th;
  42 
  43 import java.util.ListResourceBundle;
  44 
  45 public class FormatData_th extends ListResourceBundle {
  46     /**
  47      * Overrides ListResourceBundle
  48      */
  49     protected final Object[][] getContents() {
  50         String[] timePatterns = new String[] {
  51             "H' \u0e19\u0e32\u0e2c\u0e34\u0e01\u0e32 'm' \u0e19\u0e32\u0e17\u0e35 'ss' \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35'", // full time pattern
  52             "H' \u0e19\u0e32\u0e2c\u0e34\u0e01\u0e32 'm' \u0e19\u0e32\u0e17\u0e35'", // long time pattern
  53             "H:mm:ss", // medium time pattern
  54             "H:mm' \u0e19.'",  // short time pattern (modified)  -- add ' \u0e19.'
  55                                // (it means something like "o'clock" in english)
  56         };
  57         String[] datePatterns = new String[] {
  58             "EEEE'\u0e17\u0e35\u0e48 'd MMMM G yyyy", // full date pattern
  59             "d MMMM yyyy", // long date pattern
  60             "d MMM yyyy", // medium date pattern
  61             "d/M/yyyy", // short date pattern
  62         };
  63         String[] dateTimePatterns = new String[] {
  64             "{1}, {0}" // date-time pattern
  65         };
  66 
  67         return new Object[][] {
  68             { "MonthNames",
  69                 new String[] {
  70                     "\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21", // january
  71                     "\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c", // february
  72                     "\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21", // march
  73                     "\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19", // april
  74                     "\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21", // may
  75                     "\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19", // june
  76                     "\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21", // july
  77                     "\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21", // august
  78                     "\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19", // september
  79                     "\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21", // october
  80                     "\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19", // november
  81                     "\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21", // december
  82                     "" // month 13 if applicable
  83                 }
  84             },
  85             { "MonthAbbreviations",
  86                 new String[] {
  87                     "\u0e21.\u0e04.", // abb january
  88                     "\u0e01.\u0e1e.", // abb february
  89                     "\u0e21\u0e35.\u0e04.", // abb march
  90                     "\u0e40\u0e21.\u0e22.", // abb april
  91                     "\u0e1e.\u0e04.", // abb may
  92                     "\u0e21\u0e34.\u0e22.", // abb june
  93                     "\u0e01.\u0e04.", // abb july
  94                     "\u0e2a.\u0e04.", // abb august
  95                     "\u0e01.\u0e22.", // abb september
  96                     "\u0e15.\u0e04.", // abb october
  97                     "\u0e1e.\u0e22.", // abb november
  98                     "\u0e18.\u0e04.", // abb december
  99                     "" // abb month 13 if applicable
 100                 }
 101             },
 102             { "standalone.MonthNarrows",
 103                 new String[] {
 104                     "\u0e21.\u0e04.",
 105                     "\u0e01.\u0e1e.",
 106                     "\u0e21\u0e35.\u0e04.",
 107                     "\u0e40\u0e21.\u0e22.",
 108                     "\u0e1e.\u0e04.",
 109                     "\u0e21\u0e34.\u0e22.",
 110                     "\u0e01.\u0e04.",
 111                     "\u0e2a.\u0e04.",
 112                     "\u0e01.\u0e22.",
 113                     "\u0e15.\u0e04.",
 114                     "\u0e1e.\u0e22.",
 115                     "\u0e18.\u0e04.",
 116                     "",
 117                 }
 118             },
 119             { "DayNames",
 120                 new String[] {
 121                     "\u0e27\u0e31\u0e19\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c", // Sunday
 122                     "\u0e27\u0e31\u0e19\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c", // Monday
 123                     "\u0e27\u0e31\u0e19\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23", // Tuesday
 124                     "\u0e27\u0e31\u0e19\u0e1e\u0e38\u0e18", // Wednesday
 125                     "\u0e27\u0e31\u0e19\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35", // Thursday
 126                     "\u0e27\u0e31\u0e19\u0e28\u0e38\u0e01\u0e23\u0e4c", // Friday
 127                     "\u0e27\u0e31\u0e19\u0e40\u0e2a\u0e32\u0e23\u0e4c" // Saturday
 128                 }
 129             },
 130             { "DayAbbreviations",
 131                 new String[] {
 132                     "\u0e2d\u0e32.", // abb Sunday
 133                     "\u0e08.", // abb Monday
 134                     "\u0e2d.", // abb Tuesday
 135                     "\u0e1e.", // abb Wednesday
 136                     "\u0e1e\u0e24.", // abb Thursday
 137                     "\u0e28.", // abb Friday
 138                     "\u0e2a." // abb Saturday
 139                 }
 140             },
 141             { "DayNarrows",
 142                 new String[] {
 143                     "\u0e2d",
 144                     "\u0e08",
 145                     "\u0e2d",
 146                     "\u0e1e",
 147                     "\u0e1e",
 148                     "\u0e28",
 149                     "\u0e2a",
 150                 }
 151             },
 152             { "AmPmMarkers",
 153                 new String[] {
 154                     "\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07", // am marker
 155                     "\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07" // pm marker
 156                 }
 157             },
 158             { "buddhist.Eras",
 159                 new String[] { // era strings
 160                     "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48",
 161                     "\u0E1E.\u0E28." // Thai calendar requires equivalent of B.E., Buddhist Era
 162                 }
 163             },
 164             { "buddhist.short.Eras",
 165                 new String[] { // era strings
 166                     "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48",
 167                     "\u0E1E.\u0E28." // Thai calendar requires equivalent of B.E., Buddhist Era
 168                 }
 169             },
 170             { "Eras",
 171                 new String[] { // era strings
 172                     "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48",
 173                     "\u0e04.\u0e28."
 174                 }
 175             },
 176             { "narrow.Eras",
 177                 new String[] {
 178                     "\u0e01\u0e48\u0e2d\u0e19 \u0e04.\u0e28.",
 179                     "\u0e04.\u0e28.",
 180                 }
 181             },
 182             { "buddhist.TimePatterns",
 183                 timePatterns
 184             },
 185             { "buddhist.DatePatterns",
 186                 datePatterns
 187             },
 188             { "buddhist.DateTimePatterns",
 189                 dateTimePatterns
 190             },
 191             { "TimePatterns",
 192                 timePatterns
 193             },
 194             { "DatePatterns",
 195                 datePatterns
 196             },
 197             { "DateTimePatterns",
 198                 dateTimePatterns
 199             },
 200             { "DateTimePatternChars", "GanjkHmsSEDFwWxhKzZ" },
 201         };
 202     }
 203 }