jdk/src/share/classes/sun/text/resources/FormatData.java
author ohair
Tue, 25 May 2010 15:58:33 -0700
changeset 5506 202f599c92aa
parent 2 90ce3da70b43
child 13583 dc0017b1a452
permissions -rw-r--r--
6943119: Rebrand source copyright notices Reviewed-by: darcy, weijun
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 * (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * (C) Copyright IBM Corp. 1996 - 1999 - All Rights Reserved
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * The original version of this source code and documentation
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * is copyrighted and owned by Taligent, Inc., a wholly-owned
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * subsidiary of IBM. These materials are provided under terms
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * of a License Agreement between Taligent and Sun. This technology
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * is protected by multiple US and International patents.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * This notice and attribution to Taligent may not be removed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * Taligent is a registered trademark of Taligent, Inc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
package sun.text.resources;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
import java.util.ListResourceBundle;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
public class FormatData extends ListResourceBundle {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
     * Overrides ListResourceBundle
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    protected final Object[][] getContents() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
        return new Object[][] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
            { "MonthNames",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                    "January", // january
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
                    "February", // february
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
                    "March", // march
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
                    "April", // april
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
                    "May", // may
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
                    "June", // june
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
                    "July", // july
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
                    "August", // august
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
                    "September", // september
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
                    "October", // october
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
                    "November", // november
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
                    "December", // december
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
                    "" // month 13 if applicable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
            { "MonthAbbreviations",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
                    "Jan", // abb january
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
                    "Feb", // abb february
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
                    "Mar", // abb march
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
                    "Apr", // abb april
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
                    "May", // abb may
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
                    "Jun", // abb june
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
                    "Jul", // abb july
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
                    "Aug", // abb august
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
                    "Sep", // abb september
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
                    "Oct", // abb october
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
                    "Nov", // abb november
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
                    "Dec", // abb december
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
                    "" // abb month 13 if applicable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
            { "DayNames",
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
                    "Sunday", // Sunday
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
                    "Monday", // Monday
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
                    "Tuesday", // Tuesday
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
                    "Wednesday", // Wednesday
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
                    "Thursday", // Thursday
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
                    "Friday", // Friday
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
                    "Saturday" // Saturday
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
            { "DayAbbreviations",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
                    "Sun", // abb Sunday
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
                    "Mon", // abb Monday
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
                    "Tue", // abb Tuesday
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                    "Wed", // abb Wednesday
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                    "Thu", // abb Thursday
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                    "Fri", // abb Friday
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                    "Sat" // abb Saturday
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
            { "AmPmMarkers",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                    "AM", // am marker
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                    "PM" // pm marker
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
            { "Eras",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
                new String[] { // era strings for GregorianCalendar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
                    "BC",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
                    "AD"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
            { "sun.util.BuddhistCalendar.Eras",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
                new String[] { // Thai Buddhist calendar era strings
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
                    "BC",     // BC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
                    "B.E."    // Buddhist Era
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
            { "sun.util.BuddhistCalendar.short.Eras",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
                new String[] { // Thai Buddhist calendar era strings
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
                    "BC",     // BC
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
                    "B.E."    // Buddhist Era
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
            { "java.util.JapaneseImperialCalendar.Eras",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
                new String[] { // Japanese imperial calendar era strings
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
                    "",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                    "Meiji",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                    "Taisho",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
                    "Showa",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
                    "Heisei",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
            { "java.util.JapaneseImperialCalendar.short.Eras",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
                new String[] { // Japanese imperial calendar era abbreviations
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
                    "",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
                    "M",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                    "T",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                    "S",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
                    "H",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
            { "java.util.JapaneseImperialCalendar.FirstYear",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
                new String[] { // Japanese imperial calendar year name
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
                    // empty in English
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
            { "NumberPatterns",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
                    "#,##0.###;-#,##0.###", // decimal pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                    "\u00a4 #,##0.00;-\u00a4 #,##0.00", // currency pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                    "#,##0%" // percent pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
            { "NumberElements",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                    ".", // decimal separator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                    ",", // group (thousands) separator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                    ";", // list separator
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                    "%", // percent sign
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                    "0", // native 0 digit
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
                    "#", // pattern digit
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
                    "-", // minus sign
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
                    "E", // exponential
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
                    "\u2030", // per mille
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
                    "\u221e", // infinity
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
                    "\ufffd" // NaN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
            { "DateTimePatterns",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
                    "h:mm:ss a z",        // full time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
                    "h:mm:ss a z",        // long time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
                    "h:mm:ss a",          // medium time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
                    "h:mm a",             // short time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
                    "EEEE, MMMM d, yyyy", // full date pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
                    "MMMM d, yyyy",       // long date pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
                    "MMM d, yyyy",        // medium date pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                    "M/d/yy",             // short date pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
                    "{1} {0}"             // date-time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
            { "sun.util.BuddhistCalendar.DateTimePatterns",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
                    "H:mm:ss z",          // full time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
                    "H:mm:ss z",          // long time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
                    "H:mm:ss",            // medium time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
                    "H:mm",               // short time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
                    "EEEE d MMMM G yyyy", // full date pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
                    "d MMMM yyyy",        // long date pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
                    "d MMM yyyy",         // medium date pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
                    "d/M/yyyy",           // short date pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
                    "{1}, {0}"            // date-time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
            { "java.util.JapaneseImperialCalendar.DateTimePatterns",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
                new String[] {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
                    "h:mm:ss a z",             // full time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
                    "h:mm:ss a z",             // long time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
                    "h:mm:ss a",               // medium time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
                    "h:mm a",                  // short time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
                    "GGGG yyyy MMMM d (EEEE)", // full date pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
                    "GGGG yyyy MMMM d",        // long date pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
                    "GGGG yyyy MMM d",         // medium date pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
                    "Gy.MM.dd",                // short date pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
                    "{1} {0}"                  // date-time pattern
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
            },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
            { "DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ" },
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
        };
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
}