1 /*
   2  * Copyright (c) 1998, 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
  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 /*
  42  * COPYRIGHT AND PERMISSION NOTICE
  43  *
  44  * Copyright (C) 1991-2012 Unicode, Inc. All rights reserved. Distributed under
  45  * the Terms of Use in http://www.unicode.org/copyright.html.
  46  *
  47  * Permission is hereby granted, free of charge, to any person obtaining a copy
  48  * of the Unicode data files and any associated documentation (the "Data
  49  * Files") or Unicode software and any associated documentation (the
  50  * "Software") to deal in the Data Files or Software without restriction,
  51  * including without limitation the rights to use, copy, modify, merge,
  52  * publish, distribute, and/or sell copies of the Data Files or Software, and
  53  * to permit persons to whom the Data Files or Software are furnished to do so,
  54  * provided that (a) the above copyright notice(s) and this permission notice
  55  * appear with all copies of the Data Files or Software, (b) both the above
  56  * copyright notice(s) and this permission notice appear in associated
  57  * documentation, and (c) there is clear notice in each modified Data File or
  58  * in the Software as well as in the documentation associated with the Data
  59  * File(s) or Software that the data or software has been modified.
  60  *
  61  * THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
  62  * KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  63  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
  64  * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
  65  * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR
  66  * CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  67  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  68  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  69  * OF THE DATA FILES OR SOFTWARE.
  70  *
  71  * Except as contained in this notice, the name of a copyright holder shall not
  72  * be used in advertising or otherwise to promote the sale, use or other
  73  * dealings in these Data Files or Software without prior written authorization
  74  * of the copyright holder.
  75  */
  76 
  77 package sun.text.resources.ext;
  78 
  79 import sun.util.resources.ParallelListResourceBundle;
  80 
  81 public class FormatData_th extends ParallelListResourceBundle {
  82     /**
  83      * Overrides ParallelListResourceBundle
  84      */
  85     protected final Object[][] getContents() {
  86         String[] timePatterns = new String[] {
  87             "H' \u0e19\u0e32\u0e2c\u0e34\u0e01\u0e32 'm' \u0e19\u0e32\u0e17\u0e35 'ss' \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35'", // full time pattern
  88             "H' \u0e19\u0e32\u0e2c\u0e34\u0e01\u0e32 'm' \u0e19\u0e32\u0e17\u0e35'", // long time pattern
  89             "H:mm:ss", // medium time pattern
  90             "H:mm' \u0e19.'",  // short time pattern (modified)  -- add ' \u0e19.'
  91                                // (it means something like "o'clock" in english)
  92         };
  93         String[] datePatterns = new String[] {
  94             "EEEE'\u0e17\u0e35\u0e48 'd MMMM G yyyy", // full date pattern
  95             "d MMMM yyyy", // long date pattern
  96             "d MMM yyyy", // medium date pattern
  97             "d/M/yyyy", // short date pattern
  98         };
  99         String[] dateTimePatterns = new String[] {
 100             "{1}, {0}" // date-time pattern
 101         };
 102 
 103         return new Object[][] {
 104             { "MonthNames",
 105                 new String[] {
 106                     "\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21", // january
 107                     "\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c", // february
 108                     "\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21", // march
 109                     "\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19", // april
 110                     "\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21", // may
 111                     "\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19", // june
 112                     "\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21", // july
 113                     "\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21", // august
 114                     "\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19", // september
 115                     "\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21", // october
 116                     "\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19", // november
 117                     "\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21", // december
 118                     "" // month 13 if applicable
 119                 }
 120             },
 121             { "MonthAbbreviations",
 122                 new String[] {
 123                     "\u0e21.\u0e04.", // abb january
 124                     "\u0e01.\u0e1e.", // abb february
 125                     "\u0e21\u0e35.\u0e04.", // abb march
 126                     "\u0e40\u0e21.\u0e22.", // abb april
 127                     "\u0e1e.\u0e04.", // abb may
 128                     "\u0e21\u0e34.\u0e22.", // abb june
 129                     "\u0e01.\u0e04.", // abb july
 130                     "\u0e2a.\u0e04.", // abb august
 131                     "\u0e01.\u0e22.", // abb september
 132                     "\u0e15.\u0e04.", // abb october
 133                     "\u0e1e.\u0e22.", // abb november
 134                     "\u0e18.\u0e04.", // abb december
 135                     "" // abb month 13 if applicable
 136                 }
 137             },
 138             { "MonthNarrows",
 139                 new String[] {
 140                     "\u0e21.\u0e04.",
 141                     "\u0e01.\u0e1e.",
 142                     "\u0e21\u0e35.\u0e04.",
 143                     "\u0e40\u0e21.\u0e22.",
 144                     "\u0e1e.\u0e04.",
 145                     "\u0e21\u0e34.\u0e22",
 146                     "\u0e01.\u0e04.",
 147                     "\u0e2a.\u0e04.",
 148                     "\u0e01.\u0e22.",
 149                     "\u0e15.\u0e04.",
 150                     "\u0e1e.\u0e22.",
 151                     "\u0e18.\u0e04.",
 152                     "",
 153                 }
 154             },
 155             { "standalone.MonthNarrows",
 156                 new String[] {
 157                     "\u0e21.\u0e04.",
 158                     "\u0e01.\u0e1e.",
 159                     "\u0e21\u0e35.\u0e04.",
 160                     "\u0e40\u0e21.\u0e22.",
 161                     "\u0e1e.\u0e04.",
 162                     "\u0e21\u0e34.\u0e22.",
 163                     "\u0e01.\u0e04.",
 164                     "\u0e2a.\u0e04.",
 165                     "\u0e01.\u0e22.",
 166                     "\u0e15.\u0e04.",
 167                     "\u0e1e.\u0e22.",
 168                     "\u0e18.\u0e04.",
 169                     "",
 170                 }
 171             },
 172             { "DayNames",
 173                 new String[] {
 174                     "\u0e27\u0e31\u0e19\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c", // Sunday
 175                     "\u0e27\u0e31\u0e19\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c", // Monday
 176                     "\u0e27\u0e31\u0e19\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23", // Tuesday
 177                     "\u0e27\u0e31\u0e19\u0e1e\u0e38\u0e18", // Wednesday
 178                     "\u0e27\u0e31\u0e19\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35", // Thursday
 179                     "\u0e27\u0e31\u0e19\u0e28\u0e38\u0e01\u0e23\u0e4c", // Friday
 180                     "\u0e27\u0e31\u0e19\u0e40\u0e2a\u0e32\u0e23\u0e4c" // Saturday
 181                 }
 182             },
 183             { "DayAbbreviations",
 184                 new String[] {
 185                     "\u0e2d\u0e32.", // abb Sunday
 186                     "\u0e08.", // abb Monday
 187                     "\u0e2d.", // abb Tuesday
 188                     "\u0e1e.", // abb Wednesday
 189                     "\u0e1e\u0e24.", // abb Thursday
 190                     "\u0e28.", // abb Friday
 191                     "\u0e2a." // abb Saturday
 192                 }
 193             },
 194             { "DayNarrows",
 195                 new String[] {
 196                     "\u0e2d",
 197                     "\u0e08",
 198                     "\u0e2d",
 199                     "\u0e1e",
 200                     "\u0e1e",
 201                     "\u0e28",
 202                     "\u0e2a",
 203                 }
 204             },
 205             { "AmPmMarkers",
 206                 new String[] {
 207                     "\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07", // am marker
 208                     "\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07" // pm marker
 209                 }
 210             },
 211             { "buddhist.Eras",
 212                 new String[] { // era strings
 213                     "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48",
 214                     "\u0E1E.\u0E28." // Thai calendar requires equivalent of B.E., Buddhist Era
 215                 }
 216             },
 217             { "buddhist.short.Eras",
 218                 new String[] { // era strings
 219                     "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48",
 220                     "\u0E1E.\u0E28." // Thai calendar requires equivalent of B.E., Buddhist Era
 221                 }
 222             },
 223             { "Eras",
 224                 new String[] { // era strings
 225                     "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48",
 226                     "\u0e04.\u0e28."
 227                 }
 228             },
 229             { "short.Eras",
 230                 new String[] {
 231                     "\u0e01\u0e48\u0e2d\u0e19 \u0e04.\u0e28.",
 232                     "\u0e04.\u0e28.",
 233                 }
 234             },
 235             { "narrow.Eras",
 236                 new String[] {
 237                     "\u0e01\u0e48\u0e2d\u0e19 \u0e04.\u0e28.",
 238                     "\u0e04.\u0e28.",
 239                 }
 240             },
 241             { "japanese.Eras",
 242                 new String[] {
 243                     "\u0e04.\u0e28.",
 244                     "\u0e40\u0e21\u0e08\u0e34",
 245                     "\u0e17\u0e30\u0e2d\u0e34\u0e42\u0e0a",
 246                     "\u0e42\u0e0a\u0e27\u0e30",
 247                     "\u0e40\u0e2e\u0e40\u0e0b",
 248                     "\u0e40\u0e23\u0e27\u0e30",
 249                 }
 250             },
 251             { "japanese.short.Eras",
 252                 new String[] {
 253                     "\u0e04.\u0e28.",
 254                     "\u0e21",
 255                     "\u0e17",
 256                     "\u0e0a",
 257                     "\u0e2e",
 258                     "R",
 259                 }
 260             },
 261             { "buddhist.TimePatterns",
 262                 timePatterns
 263             },
 264             { "buddhist.DatePatterns",
 265                 datePatterns
 266             },
 267             { "buddhist.DateTimePatterns",
 268                 dateTimePatterns
 269             },
 270             { "TimePatterns",
 271                 timePatterns
 272             },
 273             { "DatePatterns",
 274                 datePatterns
 275             },
 276             { "DateTimePatterns",
 277                 dateTimePatterns
 278             },
 279             { "DateTimePatternChars", "GanjkHmsSEDFwWxhKzZ" },
 280         };
 281     }
 282 }