1 /* 2 * Copyright (c) 1996, 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 */ 28 29 /* 30 * (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved 31 * (C) Copyright IBM Corp. 1996 - 1999 - All Rights Reserved 32 * 33 * The original version of this source code and documentation 34 * is copyrighted and owned by Taligent, Inc., a wholly-owned 35 * subsidiary of IBM. These materials are provided under terms 36 * of a License Agreement between Taligent and Sun. This technology 37 * is protected by multiple US and International patents. 38 * 39 * This notice and attribution to Taligent may not be removed. 40 * Taligent is a registered trademark of Taligent, Inc. 41 * 42 */ 43 44 /* 45 * COPYRIGHT AND PERMISSION NOTICE 46 * 47 * Copyright (C) 1991-2012 Unicode, Inc. All rights reserved. Distributed under 48 * the Terms of Use in http://www.unicode.org/copyright.html. 49 * 50 * Permission is hereby granted, free of charge, to any person obtaining a copy 51 * of the Unicode data files and any associated documentation (the "Data 52 * Files") or Unicode software and any associated documentation (the 53 * "Software") to deal in the Data Files or Software without restriction, 54 * including without limitation the rights to use, copy, modify, merge, 55 * publish, distribute, and/or sell copies of the Data Files or Software, and 56 * to permit persons to whom the Data Files or Software are furnished to do so, 57 * provided that (a) the above copyright notice(s) and this permission notice 58 * appear with all copies of the Data Files or Software, (b) both the above 59 * copyright notice(s) and this permission notice appear in associated 60 * documentation, and (c) there is clear notice in each modified Data File or 61 * in the Software as well as in the documentation associated with the Data 62 * File(s) or Software that the data or software has been modified. 63 * 64 * THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY 65 * KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 66 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 67 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 68 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR 69 * CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 70 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 71 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 72 * OF THE DATA FILES OR SOFTWARE. 73 * 74 * Except as contained in this notice, the name of a copyright holder shall not 75 * be used in advertising or otherwise to promote the sale, use or other 76 * dealings in these Data Files or Software without prior written authorization 77 * of the copyright holder. 78 */ 79 80 package sun.text.resources; 81 82 import java.util.ListResourceBundle; 83 84 public class FormatData extends ListResourceBundle { 85 /** 86 * Overrides ListResourceBundle 87 */ 88 protected final Object[][] getContents() { 89 final String[] buddhistEras = new String[] { // Thai Buddhist calendar era strings 90 "BC", // BC 91 "B.E." // Buddhist Era 92 }; 93 94 // Japanese imperial calendar era abbreviations 95 final String[] japaneseEraAbbrs = new String[] { 96 "", 97 "M", 98 "T", 99 "S", 100 "H", 101 }; 102 103 return new Object[][] { 104 { "MonthNames", 105 new String[] { 106 "January", // january 107 "February", // february 108 "March", // march 109 "April", // april 110 "May", // may 111 "June", // june 112 "July", // july 113 "August", // august 114 "September", // september 115 "October", // october 116 "November", // november 117 "December", // december 118 "" // month 13 if applicable 119 } 120 }, 121 { "MonthAbbreviations", 122 new String[] { 123 "Jan", // abb january 124 "Feb", // abb february 125 "Mar", // abb march 126 "Apr", // abb april 127 "May", // abb may 128 "Jun", // abb june 129 "Jul", // abb july 130 "Aug", // abb august 131 "Sep", // abb september 132 "Oct", // abb october 133 "Nov", // abb november 134 "Dec", // abb december 135 "" // abb month 13 if applicable 136 } 137 }, 138 { "DayNames", 139 new String[] { 140 "Sunday", // Sunday 141 "Monday", // Monday 142 "Tuesday", // Tuesday 143 "Wednesday", // Wednesday 144 "Thursday", // Thursday 145 "Friday", // Friday 146 "Saturday" // Saturday 147 } 148 }, 149 { "DayAbbreviations", 150 new String[] { 151 "Sun", // abb Sunday 152 "Mon", // abb Monday 153 "Tue", // abb Tuesday 154 "Wed", // abb Wednesday 155 "Thu", // abb Thursday 156 "Fri", // abb Friday 157 "Sat" // abb Saturday 158 } 159 }, 160 { "DayNarrows", 161 new String[] { 162 "S", 163 "M", 164 "T", 165 "W", 166 "T", 167 "F", 168 "S", 169 } 170 }, 171 { "AmPmMarkers", 172 new String[] { 173 "AM", // am marker 174 "PM" // pm marker 175 } 176 }, 177 { "narrow.AmPmMarkers", 178 new String[] { 179 "a", // am marker 180 "p" // pm marker 181 } 182 }, 183 { "Eras", 184 new String[] { // era strings for GregorianCalendar 185 "BC", 186 "AD" 187 } 188 }, 189 { "narrow.Eras", 190 new String[] { 191 "B", 192 "A", 193 } 194 }, 195 { "buddhist.Eras", 196 buddhistEras 197 }, 198 { "buddhist.short.Eras", 199 buddhistEras 200 }, 201 { "buddhist.narrow.Eras", 202 buddhistEras 203 }, 204 { "japanese.Eras", 205 new String[] { // Japanese imperial calendar era strings 206 "", 207 "Meiji", 208 "Taisho", 209 "Showa", 210 "Heisei", 211 } 212 }, 213 { "japanese.short.Eras", 214 japaneseEraAbbrs 215 }, 216 { "japanese.narrow.Eras", 217 japaneseEraAbbrs 218 }, 219 { "japanese.FirstYear", 220 new String[] { // Japanese imperial calendar year name 221 // empty in English 222 } 223 }, 224 { "NumberPatterns", 225 new String[] { 226 "#,##0.###;-#,##0.###", // decimal pattern 227 "\u00a4 #,##0.00;-\u00a4 #,##0.00", // currency pattern 228 "#,##0%" // percent pattern 229 } 230 }, 231 { "DefaultNumberingSystem", "" }, 232 { "NumberElements", 233 new String[] { 234 ".", // decimal separator 235 ",", // group (thousands) separator 236 ";", // list separator 237 "%", // percent sign 238 "0", // native 0 digit 239 "#", // pattern digit 240 "-", // minus sign 241 "E", // exponential 242 "\u2030", // per mille 243 "\u221e", // infinity 244 "\ufffd" // NaN 245 } 246 }, 247 { "arab.NumberElements", 248 new String[] { 249 "\u066b", 250 "\u066c", 251 "\u061b", 252 "\u066a", 253 "\u0660", 254 "#", 255 "-", 256 "\u0627\u0633", 257 "\u0609", 258 "\u221e", 259 "NaN", 260 } 261 }, 262 { "arabext.NumberElements", 263 new String[] { 264 "\u066b", 265 "\u066c", 266 "\u061b", 267 "\u066a", 268 "\u06f0", 269 "#", 270 "-", 271 "\u00d7\u06f1\u06f0^", 272 "\u0609", 273 "\u221e", 274 "NaN", 275 } 276 }, 277 { "bali.NumberElements", 278 new String[] { 279 ".", 280 ",", 281 ";", 282 "%", 283 "\u1b50", 284 "#", 285 "-", 286 "E", 287 "\u2030", 288 "\u221e", 289 "NaN", 290 } 291 }, 292 { "beng.NumberElements", 293 new String[] { 294 ".", 295 ",", 296 ";", 297 "%", 298 "\u09e6", 299 "#", 300 "-", 301 "E", 302 "\u2030", 303 "\u221e", 304 "NaN", 305 } 306 }, 307 { "cham.NumberElements", 308 new String[] { 309 ".", 310 ",", 311 ";", 312 "%", 313 "\uaa50", 314 "#", 315 "-", 316 "E", 317 "\u2030", 318 "\u221e", 319 "NaN", 320 } 321 }, 322 { "deva.NumberElements", 323 new String[] { 324 ".", 325 ",", 326 ";", 327 "%", 328 "\u0966", 329 "#", 330 "-", 331 "E", 332 "\u2030", 333 "\u221e", 334 "NaN", 335 } 336 }, 337 { "fullwide.NumberElements", 338 new String[] { 339 ".", 340 ",", 341 ";", 342 "%", 343 "\uff10", 344 "#", 345 "-", 346 "E", 347 "\u2030", 348 "\u221e", 349 "NaN", 350 } 351 }, 352 { "gujr.NumberElements", 353 new String[] { 354 ".", 355 ",", 356 ";", 357 "%", 358 "\u0ae6", 359 "#", 360 "-", 361 "E", 362 "\u2030", 363 "\u221e", 364 "NaN", 365 } 366 }, 367 { "guru.NumberElements", 368 new String[] { 369 ".", 370 ",", 371 ";", 372 "%", 373 "\u0a66", 374 "#", 375 "-", 376 "E", 377 "\u2030", 378 "\u221e", 379 "NaN", 380 } 381 }, 382 { "java.NumberElements", 383 new String[] { 384 ".", 385 ",", 386 ";", 387 "%", 388 "\ua9d0", 389 "#", 390 "-", 391 "E", 392 "\u2030", 393 "\u221e", 394 "NaN", 395 } 396 }, 397 { "kali.NumberElements", 398 new String[] { 399 ".", 400 ",", 401 ";", 402 "%", 403 "\ua900", 404 "#", 405 "-", 406 "E", 407 "\u2030", 408 "\u221e", 409 "NaN", 410 } 411 }, 412 { "khmr.NumberElements", 413 new String[] { 414 ".", 415 ",", 416 ";", 417 "%", 418 "\u17e0", 419 "#", 420 "-", 421 "E", 422 "\u2030", 423 "\u221e", 424 "NaN", 425 } 426 }, 427 { "knda.NumberElements", 428 new String[] { 429 ".", 430 ",", 431 ";", 432 "%", 433 "\u0ce6", 434 "#", 435 "-", 436 "E", 437 "\u2030", 438 "\u221e", 439 "NaN", 440 } 441 }, 442 { "laoo.NumberElements", 443 new String[] { 444 ".", 445 ",", 446 ";", 447 "%", 448 "\u0ed0", 449 "#", 450 "-", 451 "E", 452 "\u2030", 453 "\u221e", 454 "NaN", 455 } 456 }, 457 { "lana.NumberElements", 458 new String[] { 459 ".", 460 ",", 461 ";", 462 "%", 463 "\u1a80", 464 "#", 465 "-", 466 "E", 467 "\u2030", 468 "\u221e", 469 "NaN", 470 } 471 }, 472 { "lanatham.NumberElements", 473 new String[] { 474 ".", 475 ",", 476 ";", 477 "%", 478 "\u1a90", 479 "#", 480 "-", 481 "E", 482 "\u2030", 483 "\u221e", 484 "NaN", 485 } 486 }, 487 { "latn.NumberElements", 488 new String[] { 489 ".", // decimal separator 490 ",", // group (thousands) separator 491 ";", // list separator 492 "%", // percent sign 493 "0", // native 0 digit 494 "#", // pattern digit 495 "-", // minus sign 496 "E", // exponential 497 "\u2030", // per mille 498 "\u221e", // infinity 499 "\ufffd" // NaN 500 } 501 }, 502 { "lepc.NumberElements", 503 new String[] { 504 ".", 505 ",", 506 ";", 507 "%", 508 "\u1c40", 509 "#", 510 "-", 511 "E", 512 "\u2030", 513 "\u221e", 514 "NaN", 515 } 516 }, 517 { "limb.NumberElements", 518 new String[] { 519 ".", 520 ",", 521 ";", 522 "%", 523 "\u1946", 524 "#", 525 "-", 526 "E", 527 "\u2030", 528 "\u221e", 529 "NaN", 530 } 531 }, 532 { "mlym.NumberElements", 533 new String[] { 534 ".", 535 ",", 536 ";", 537 "%", 538 "\u0d66", 539 "#", 540 "-", 541 "E", 542 "\u2030", 543 "\u221e", 544 "NaN", 545 } 546 }, 547 { "mong.NumberElements", 548 new String[] { 549 ".", 550 ",", 551 ";", 552 "%", 553 "\u1810", 554 "#", 555 "-", 556 "E", 557 "\u2030", 558 "\u221e", 559 "NaN", 560 } 561 }, 562 { "mtei.NumberElements", 563 new String[] { 564 ".", 565 ",", 566 ";", 567 "%", 568 "\uabf0", 569 "#", 570 "-", 571 "E", 572 "\u2030", 573 "\u221e", 574 "NaN", 575 } 576 }, 577 { "mymr.NumberElements", 578 new String[] { 579 ".", 580 ",", 581 ";", 582 "%", 583 "\u1040", 584 "#", 585 "-", 586 "E", 587 "\u2030", 588 "\u221e", 589 "NaN", 590 } 591 }, 592 { "mymrshan.NumberElements", 593 new String[] { 594 ".", 595 ",", 596 ";", 597 "%", 598 "\u1090", 599 "#", 600 "-", 601 "E", 602 "\u2030", 603 "\u221e", 604 "NaN", 605 } 606 }, 607 { "nkoo.NumberElements", 608 new String[] { 609 ".", 610 ",", 611 ";", 612 "%", 613 "\u07c0", 614 "#", 615 "-", 616 "E", 617 "\u2030", 618 "\u221e", 619 "NaN", 620 } 621 }, 622 { "olck.NumberElements", 623 new String[] { 624 ".", 625 ",", 626 ";", 627 "%", 628 "\u1c50", 629 "#", 630 "-", 631 "E", 632 "\u2030", 633 "\u221e", 634 "NaN", 635 } 636 }, 637 { "orya.NumberElements", 638 new String[] { 639 ".", 640 ",", 641 ";", 642 "%", 643 "\u0b66", 644 "#", 645 "-", 646 "E", 647 "\u2030", 648 "\u221e", 649 "NaN", 650 } 651 }, 652 { "saur.NumberElements", 653 new String[] { 654 ".", 655 ",", 656 ";", 657 "%", 658 "\ua8d0", 659 "#", 660 "-", 661 "E", 662 "\u2030", 663 "\u221e", 664 "NaN", 665 } 666 }, 667 { "sund.NumberElements", 668 new String[] { 669 ".", 670 ",", 671 ";", 672 "%", 673 "\u1bb0", 674 "#", 675 "-", 676 "E", 677 "\u2030", 678 "\u221e", 679 "NaN", 680 } 681 }, 682 { "talu.NumberElements", 683 new String[] { 684 ".", 685 ",", 686 ";", 687 "%", 688 "\u19d0", 689 "#", 690 "-", 691 "E", 692 "\u2030", 693 "\u221e", 694 "NaN", 695 } 696 }, 697 { "tamldec.NumberElements", 698 new String[] { 699 ".", 700 ",", 701 ";", 702 "%", 703 "\u0be6", 704 "#", 705 "-", 706 "E", 707 "\u2030", 708 "\u221e", 709 "NaN", 710 } 711 }, 712 { "telu.NumberElements", 713 new String[] { 714 ".", 715 ",", 716 ";", 717 "%", 718 "\u0c66", 719 "#", 720 "-", 721 "E", 722 "\u2030", 723 "\u221e", 724 "NaN", 725 } 726 }, 727 { "thai.NumberElements", 728 new String[] { 729 ".", // decimal separator 730 ",", // group (thousands) separator 731 ";", // list separator 732 "%", // percent sign 733 "\u0E50", // native 0 digit 734 "#", // pattern digit 735 "-", // minus sign 736 "E", // exponential 737 "\u2030", // per mille 738 "\u221e", // infinity 739 "\ufffd" // NaN 740 } 741 }, 742 { "tibt.NumberElements", 743 new String[] { 744 ".", 745 ",", 746 ";", 747 "%", 748 "\u0f20", 749 "#", 750 "-", 751 "E", 752 "\u2030", 753 "\u221e", 754 "NaN", 755 } 756 }, 757 { "vaii.NumberElements", 758 new String[] { 759 ".", 760 ",", 761 ";", 762 "%", 763 "\ua620", 764 "#", 765 "-", 766 "E", 767 "\u2030", 768 "\u221e", 769 "NaN", 770 } 771 }, 772 { "TimePatterns", 773 new String[] { 774 "h:mm:ss a z", // full time pattern 775 "h:mm:ss a z", // long time pattern 776 "h:mm:ss a", // medium time pattern 777 "h:mm a", // short time pattern 778 } 779 }, 780 { "DatePatterns", 781 new String[] { 782 "EEEE, MMMM d, yyyy", // full date pattern 783 "MMMM d, yyyy", // long date pattern 784 "MMM d, yyyy", // medium date pattern 785 "M/d/yy", // short date pattern 786 } 787 }, 788 { "DateTimePatterns", 789 new String[] { 790 "{1} {0}" // date-time pattern 791 } 792 }, 793 { "buddhist.TimePatterns", 794 new String[] { 795 "H:mm:ss z", // full time pattern 796 "H:mm:ss z", // long time pattern 797 "H:mm:ss", // medium time pattern 798 "H:mm", // short time pattern 799 } 800 }, 801 { "cldr.buddhist.DatePatterns", 802 new String[] { 803 "EEEE, G y MMMM dd", 804 "G y MMMM d", 805 "G y MMM d", 806 "GGGGG yyyy-MM-dd", 807 } 808 }, 809 { "buddhist.DatePatterns", 810 new String[] { 811 "EEEE d MMMM G yyyy", // full date pattern 812 "d MMMM yyyy", // long date pattern 813 "d MMM yyyy", // medium date pattern 814 "d/M/yyyy", // short date pattern 815 } 816 }, 817 { "buddhist.DateTimePatterns", 818 new String[] { 819 "{1}, {0}" // date-time pattern 820 } 821 }, 822 { "japanese.TimePatterns", 823 new String[] { 824 "h:mm:ss a z", // full time pattern 825 "h:mm:ss a z", // long time pattern 826 "h:mm:ss a", // medium time pattern 827 "h:mm a", // short time pattern 828 } 829 }, 830 { "cldr.japanese.DatePatterns", 831 new String[] { 832 "EEEE, G y MMMM dd", 833 "G y MMMM d", 834 "G y MMM d", 835 "GGGGG yy-MM-dd", 836 } 837 }, 838 { "japanese.DatePatterns", 839 new String[] { 840 "GGGG yyyy MMMM d (EEEE)", // full date pattern 841 "GGGG yyyy MMMM d", // long date pattern 842 "GGGG yyyy MMM d", // medium date pattern 843 "Gy.MM.dd", // short date pattern 844 } 845 }, 846 { "japanese.DateTimePatterns", 847 new String[] { 848 "{1} {0}" // date-time pattern 849 } 850 }, 851 { "roc.Eras", 852 new String[] { 853 "Before R.O.C.", 854 "R.O.C.", 855 } 856 }, 857 { "cldr.roc.DatePatterns", 858 new String[] { 859 "EEEE, G y MMMM dd", 860 "G y MMMM d", 861 "G y MMM d", 862 "GGGGG yyy-MM-dd", 863 } 864 }, 865 { "roc.DatePatterns", 866 new String[] { 867 "EEEE, GGGG y MMMM dd", 868 "GGGG y MMMM d", 869 "GGGG y MMM d", 870 "G yyy-MM-dd", 871 } 872 }, 873 { "islamic.MonthNames", 874 new String[] { 875 "Muharram", 876 "Safar", 877 "Rabi\u02bb I", 878 "Rabi\u02bb II", 879 "Jumada I", 880 "Jumada II", 881 "Rajab", 882 "Sha\u02bbban", 883 "Ramadan", 884 "Shawwal", 885 "Dhu\u02bbl-Qi\u02bbdah", 886 "Dhu\u02bbl-Hijjah", 887 "", 888 } 889 }, 890 { "islamic.MonthAbbreviations", 891 new String[] { 892 "Muh.", 893 "Saf.", 894 "Rab. I", 895 "Rab. II", 896 "Jum. I", 897 "Jum. II", 898 "Raj.", 899 "Sha.", 900 "Ram.", 901 "Shaw.", 902 "Dhu\u02bbl-Q.", 903 "Dhu\u02bbl-H.", 904 "", 905 } 906 }, 907 { "islamic.Eras", 908 new String[] { 909 "", 910 "AH", 911 } 912 }, 913 { "cldr.islamic.DatePatterns", 914 new String[] { 915 "EEEE, MMMM d, y G", 916 "MMMM d, y G", 917 "MMM d, y G", 918 "M/d/yy G", 919 } 920 }, 921 { "islamic.DatePatterns", 922 new String[] { 923 "EEEE, MMMM d, y GGGG", 924 "MMMM d, y GGGG", 925 "MMM d, y GGGG", 926 "M/d/yy GGGG", 927 } 928 }, 929 { "DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ" }, 930 { "calendarname.islamic-civil", "Islamic-Civil Calendar" }, 931 { "calendarname.islamicc", "Islamic-Civil Calendar" }, 932 { "calendarname.islamic", "Islamic Calendar" }, 933 { "calendarname.japanese", "Japanese Calendar" }, 934 { "calendarname.gregorian", "Gregorian Calendar" }, 935 { "calendarname.gregory", "Gregorian Calendar" }, 936 { "calendarname.roc", "Minguo Calendar" }, 937 { "calendarname.buddhist", "Buddhist Calendar" }, 938 { "field.era", "Era" }, 939 { "field.year", "Year" }, 940 { "field.month", "Month" }, 941 { "field.week", "Week" }, 942 { "field.weekday", "Day of the Week" }, 943 { "field.dayperiod", "Dayperiod" }, 944 { "field.hour", "Hour" }, 945 { "field.minute", "Minute" }, 946 { "field.second", "Second" }, 947 { "field.zone", "Zone" }, 948 }; 949 } 950 }