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.th; 78 79 import java.util.ListResourceBundle; 80 81 public class FormatData_th extends ListResourceBundle { 82 /** 83 * Overrides ListResourceBundle 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 { "standalone.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 { "DayNames", 156 new String[] { 157 "\u0e27\u0e31\u0e19\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c", // Sunday 158 "\u0e27\u0e31\u0e19\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c", // Monday 159 "\u0e27\u0e31\u0e19\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23", // Tuesday 160 "\u0e27\u0e31\u0e19\u0e1e\u0e38\u0e18", // Wednesday 161 "\u0e27\u0e31\u0e19\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35", // Thursday 162 "\u0e27\u0e31\u0e19\u0e28\u0e38\u0e01\u0e23\u0e4c", // Friday 163 "\u0e27\u0e31\u0e19\u0e40\u0e2a\u0e32\u0e23\u0e4c" // Saturday 164 } 165 }, 166 { "DayAbbreviations", 167 new String[] { 168 "\u0e2d\u0e32.", // abb Sunday 169 "\u0e08.", // abb Monday 170 "\u0e2d.", // abb Tuesday 171 "\u0e1e.", // abb Wednesday 172 "\u0e1e\u0e24.", // abb Thursday 173 "\u0e28.", // abb Friday 174 "\u0e2a." // abb Saturday 175 } 176 }, 177 { "DayNarrows", 178 new String[] { 179 "\u0e2d", 180 "\u0e08", 181 "\u0e2d", 182 "\u0e1e", 183 "\u0e1e", 184 "\u0e28", 185 "\u0e2a", 186 } 187 }, 188 { "AmPmMarkers", 189 new String[] { 190 "\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07", // am marker 191 "\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07" // pm marker 192 } 193 }, 194 { "buddhist.Eras", 195 new String[] { // era strings 196 "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48", 197 "\u0E1E.\u0E28." // Thai calendar requires equivalent of B.E., Buddhist Era 198 } 199 }, 200 { "buddhist.short.Eras", 201 new String[] { // era strings 202 "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48", 203 "\u0E1E.\u0E28." // Thai calendar requires equivalent of B.E., Buddhist Era 204 } 205 }, 206 { "Eras", 207 new String[] { // era strings 208 "\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e01\u0e32\u0e25\u0e17\u0e35\u0e48", 209 "\u0e04.\u0e28." 210 } 211 }, 212 { "narrow.Eras", 213 new String[] { 214 "\u0e01\u0e48\u0e2d\u0e19 \u0e04.\u0e28.", 215 "\u0e04.\u0e28.", 216 } 217 }, 218 { "buddhist.TimePatterns", 219 timePatterns 220 }, 221 { "cldr.buddhist.DatePatterns", 222 new String[] { 223 "EEEE\u0e17\u0e35\u0e48 d MMMM G y", 224 "d MMMM y", 225 "d MMM y", 226 "d/M/yyyy", 227 } 228 }, 229 { "buddhist.DatePatterns", 230 datePatterns 231 }, 232 { "buddhist.DateTimePatterns", 233 dateTimePatterns 234 }, 235 { "TimePatterns", 236 timePatterns 237 }, 238 { "DatePatterns", 239 datePatterns 240 }, 241 { "DateTimePatterns", 242 dateTimePatterns 243 }, 244 { "DateTimePatternChars", "GanjkHmsSEDFwWxhKzZ" }, 245 { "cldr.japanese.DatePatterns", 246 new String[] { 247 "EEEE\u0e17\u0e35\u0e48 d MMMM \u0e1b\u0e35G\u0e17\u0e35\u0e48 y", 248 "d MMMM \u0e1b\u0e35G y", 249 "d MMM G y", 250 "d/M/yy", 251 } 252 }, 253 { "cldr.roc.DatePatterns", 254 new String[] { 255 "EEEE\u0e17\u0e35\u0e48 d MMMM \u0e1b\u0e35G\u0e17\u0e35\u0e48 y", 256 "d MMMM \u0e1b\u0e35G y", 257 "d MMM G y", 258 "d/M/yy", 259 } 260 }, 261 { "roc.DatePatterns", 262 new String[] { 263 "EEEE\u0e17\u0e35\u0e48 d MMMM \u0e1b\u0e35GGGG\u0e17\u0e35\u0e48 y", 264 "d MMMM \u0e1b\u0e35GGGG y", 265 "d MMM GGGG y", 266 "d/M/yy", 267 } 268 }, 269 { "islamic.MonthNames", 270 new String[] { 271 "\u0e21\u0e38\u0e2e\u0e30\u0e23\u0e4c\u0e23\u0e2d\u0e21", 272 "\u0e0b\u0e2d\u0e1f\u0e32\u0e23\u0e4c", 273 "\u0e23\u0e2d\u0e1a\u0e35 I", 274 "\u0e23\u0e2d\u0e1a\u0e35 II", 275 "\u0e08\u0e38\u0e21\u0e32\u0e14\u0e32 I", 276 "\u0e08\u0e38\u0e21\u0e32\u0e14\u0e32 II", 277 "\u0e23\u0e2d\u0e08\u0e31\u0e1a", 278 "\u0e0a\u0e30\u0e2d\u0e30\u0e1a\u0e32\u0e19", 279 "\u0e23\u0e2d\u0e21\u0e30\u0e14\u0e2d\u0e19", 280 "\u0e40\u0e0a\u0e32\u0e27\u0e31\u0e25", 281 "\u0e14\u0e2e\u0e38\u0e38\u0e2d\u0e31\u0e25\u0e01\u0e34\u0e14\u0e30\u0e2b\u0e4c", 282 "\u0e14\u0e2e\u0e38\u0e2d\u0e31\u0e25\u0e2e\u0e34\u0e08\u0e08\u0e30\u0e2b\u0e4c", 283 "", 284 } 285 }, 286 { "islamic.long.Eras", 287 new String[] { 288 "", 289 "\u0e2e\u0e34\u0e08\u0e40\u0e23\u0e32\u0e30\u0e2b\u0e4c\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a", 290 } 291 }, 292 { "islamic.Eras", 293 new String[] { 294 "", 295 "\u0e2e.\u0e28.", 296 } 297 }, 298 { "calendarname.islamic-civil", "\u0e1b\u0e0f\u0e34\u0e17\u0e34\u0e19\u0e2d\u0e34\u0e2a\u0e25\u0e32\u0e21\u0e0b\u0e35\u0e27\u0e34\u0e25" }, 299 { "calendarname.islamicc", "\u0e1b\u0e0f\u0e34\u0e17\u0e34\u0e19\u0e2d\u0e34\u0e2a\u0e25\u0e32\u0e21\u0e0b\u0e35\u0e27\u0e34\u0e25" }, 300 { "calendarname.islamic", "\u0e1b\u0e0f\u0e34\u0e17\u0e34\u0e19\u0e2d\u0e34\u0e2a\u0e25\u0e32\u0e21" }, 301 { "calendarname.japanese", "\u0e1b\u0e0f\u0e34\u0e17\u0e34\u0e19\u0e0d\u0e35\u0e48\u0e1b\u0e38\u0e48\u0e19" }, 302 { "calendarname.gregorian", "\u0e1b\u0e0f\u0e34\u0e17\u0e34\u0e19\u0e40\u0e01\u0e23\u0e01\u0e2d\u0e40\u0e23\u0e35\u0e22\u0e19" }, 303 { "calendarname.gregory", "\u0e1b\u0e0f\u0e34\u0e17\u0e34\u0e19\u0e40\u0e01\u0e23\u0e01\u0e2d\u0e40\u0e23\u0e35\u0e22\u0e19" }, 304 { "calendarname.roc", "\u0e1b\u0e0f\u0e34\u0e17\u0e34\u0e19\u0e44\u0e15\u0e49\u0e2b\u0e27\u0e31\u0e19" }, 305 { "calendarname.buddhist", "\u0e1b\u0e0f\u0e34\u0e17\u0e34\u0e19\u0e1e\u0e38\u0e17\u0e18" }, 306 { "field.era", "\u0e2a\u0e21\u0e31\u0e22" }, 307 { "field.year", "\u0e1b\u0e35" }, 308 { "field.month", "\u0e40\u0e14\u0e37\u0e2d\u0e19" }, 309 { "field.week", "\u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c" }, 310 { "field.weekday", "\u0e27\u0e31\u0e19\u0e43\u0e19\u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c" }, 311 { "field.dayperiod", "\u0e0a\u0e48\u0e27\u0e07\u0e27\u0e31\u0e19" }, 312 { "field.hour", "\u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07" }, 313 { "field.minute", "\u0e19\u0e32\u0e17\u0e35" }, 314 { "field.second", "\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35" }, 315 { "field.zone", "\u0e40\u0e02\u0e15" }, 316 }; 317 } 318 }