Showing the changes to java/pkg/sun/text/resources/FormatData.java (1 of 18352 files). Show all
Unified · Split
| @@ -0,0 +1,221 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 1996, 2005, 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 | package sun.text.resources; | ||
| 45 | |||
| 46 | import java.util.ListResourceBundle; | ||
| 47 | |||
| 48 | public class FormatData extends ListResourceBundle { | ||
| 49 | /** | ||
| 50 | * Overrides ListResourceBundle | ||
| 51 | */ | ||
| 52 | protected final Object[][] getContents() { | ||
| 53 | return new Object[][] { | ||
| 54 | { "MonthNames", | ||
| 55 | new String[] { | ||
| 56 | "January", // january | ||
| 57 | "February", // february | ||
| 58 | "March", // march | ||
| 59 | "April", // april | ||
| 60 | "May", // may | ||
| 61 | "June", // june | ||
| 62 | "July", // july | ||
| 63 | "August", // august | ||
| 64 | "September", // september | ||
| 65 | "October", // october | ||
| 66 | "November", // november | ||
| 67 | "December", // december | ||
| 68 | "" // month 13 if applicable | ||
| 69 | } | ||
| 70 | }, | ||
| 71 | { "MonthAbbreviations", | ||
| 72 | new String[] { | ||
| 73 | "Jan", // abb january | ||
| 74 | "Feb", // abb february | ||
| 75 | "Mar", // abb march | ||
| 76 | "Apr", // abb april | ||
| 77 | "May", // abb may | ||
| 78 | "Jun", // abb june | ||
| 79 | "Jul", // abb july | ||
| 80 | "Aug", // abb august | ||
| 81 | "Sep", // abb september | ||
| 82 | "Oct", // abb october | ||
| 83 | "Nov", // abb november | ||
| 84 | "Dec", // abb december | ||
| 85 | "" // abb month 13 if applicable | ||
| 86 | } | ||
| 87 | }, | ||
| 88 | { "DayNames", | ||
| 89 | new String[] { | ||
| 90 | "Sunday", // Sunday | ||
| 91 | "Monday", // Monday | ||
| 92 | "Tuesday", // Tuesday | ||
| 93 | "Wednesday", // Wednesday | ||
| 94 | "Thursday", // Thursday | ||
| 95 | "Friday", // Friday | ||
| 96 | "Saturday" // Saturday | ||
| 97 | } | ||
| 98 | }, | ||
| 99 | { "DayAbbreviations", | ||
| 100 | new String[] { | ||
| 101 | "Sun", // abb Sunday | ||
| 102 | "Mon", // abb Monday | ||
| 103 | "Tue", // abb Tuesday | ||
| 104 | "Wed", // abb Wednesday | ||
| 105 | "Thu", // abb Thursday | ||
| 106 | "Fri", // abb Friday | ||
| 107 | "Sat" // abb Saturday | ||
| 108 | } | ||
| 109 | }, | ||
| 110 | { "AmPmMarkers", | ||
| 111 | new String[] { | ||
| 112 | "AM", // am marker | ||
| 113 | "PM" // pm marker | ||
| 114 | } | ||
| 115 | }, | ||
| 116 | { "Eras", | ||
| 117 | new String[] { // era strings for GregorianCalendar | ||
| 118 | "BC", | ||
| 119 | "AD" | ||
| 120 | } | ||
| 121 | }, | ||
| 122 | { "sun.util.BuddhistCalendar.Eras", | ||
| 123 | new String[] { // Thai Buddhist calendar era strings | ||
| 124 | "BC", // BC | ||
| 125 | "B.E." // Buddhist Era | ||
| 126 | } | ||
| 127 | }, | ||
| 128 | { "sun.util.BuddhistCalendar.short.Eras", | ||
| 129 | new String[] { // Thai Buddhist calendar era strings | ||
| 130 | "BC", // BC | ||
| 131 | "B.E." // Buddhist Era | ||
| 132 | } | ||
| 133 | }, | ||
| 134 | { "java.util.JapaneseImperialCalendar.Eras", | ||
| 135 | new String[] { // Japanese imperial calendar era strings | ||
| 136 | "", | ||
| 137 | "Meiji", | ||
| 138 | "Taisho", | ||
| 139 | "Showa", | ||
| 140 | "Heisei", | ||
| 141 | } | ||
| 142 | }, | ||
| 143 | { "java.util.JapaneseImperialCalendar.short.Eras", | ||
| 144 | new String[] { // Japanese imperial calendar era abbreviations | ||
| 145 | "", | ||
| 146 | "M", | ||
| 147 | "T", | ||
| 148 | "S", | ||
| 149 | "H", | ||
| 150 | } | ||
| 151 | }, | ||
| 152 | { "java.util.JapaneseImperialCalendar.FirstYear", | ||
| 153 | new String[] { // Japanese imperial calendar year name | ||
| 154 | // empty in English | ||
| 155 | } | ||
| 156 | }, | ||
| 157 | { "NumberPatterns", | ||
| 158 | new String[] { | ||
| 159 | "#,##0.###;-#,##0.###", // decimal pattern | ||
| 160 | "\u00a4 #,##0.00;-\u00a4 #,##0.00", // currency pattern | ||
| 161 | "#,##0%" // percent pattern | ||
| 162 | } | ||
| 163 | }, | ||
| 164 | { "NumberElements", | ||
| 165 | new String[] { | ||
| 166 | ".", // decimal separator | ||
| 167 | ",", // group (thousands) separator | ||
| 168 | ";", // list separator | ||
| 169 | "%", // percent sign | ||
| 170 | "0", // native 0 digit | ||
| 171 | "#", // pattern digit | ||
| 172 | "-", // minus sign | ||
| 173 | "E", // exponential | ||
| 174 | "\u2030", // per mille | ||
| 175 | "\u221e", // infinity | ||
| 176 | "\ufffd" // NaN | ||
| 177 | } | ||
| 178 | }, | ||
| 179 | { "DateTimePatterns", | ||
| 180 | new String[] { | ||
| 181 | "h:mm:ss a z", // full time pattern | ||
| 182 | "h:mm:ss a z", // long time pattern | ||
| 183 | "h:mm:ss a", // medium time pattern | ||
| 184 | "h:mm a", // short time pattern | ||
| 185 | "EEEE, MMMM d, yyyy", // full date pattern | ||
| 186 | "MMMM d, yyyy", // long date pattern | ||
| 187 | "MMM d, yyyy", // medium date pattern | ||
| 188 | "M/d/yy", // short date pattern | ||
| 189 | "{1} {0}" // date-time pattern | ||
| 190 | } | ||
| 191 | }, | ||
| 192 | { "sun.util.BuddhistCalendar.DateTimePatterns", | ||
| 193 | new String[] { | ||
| 194 | "H:mm:ss z", // full time pattern | ||
| 195 | "H:mm:ss z", // long time pattern | ||
| 196 | "H:mm:ss", // medium time pattern | ||
| 197 | "H:mm", // short time pattern | ||
| 198 | "EEEE d MMMM G yyyy", // full date pattern | ||
| 199 | "d MMMM yyyy", // long date pattern | ||
| 200 | "d MMM yyyy", // medium date pattern | ||
| 201 | "d/M/yyyy", // short date pattern | ||
| 202 | "{1}, {0}" // date-time pattern | ||
| 203 | } | ||
| 204 | }, | ||
| 205 | { "java.util.JapaneseImperialCalendar.DateTimePatterns", | ||
| 206 | new String[] { | ||
| 207 | "h:mm:ss a z", // full time pattern | ||
| 208 | "h:mm:ss a z", // long time pattern | ||
| 209 | "h:mm:ss a", // medium time pattern | ||
| 210 | "h:mm a", // short time pattern | ||
| 211 | "GGGG yyyy MMMM d (EEEE)", // full date pattern | ||
| 212 | "GGGG yyyy MMMM d", // long date pattern | ||
| 213 | "GGGG yyyy MMM d", // medium date pattern | ||
| 214 | "Gy.MM.dd", // short date pattern | ||
| 215 | "{1} {0}" // date-time pattern | ||
| 216 | } | ||
| 217 | }, | ||
| 218 | { "DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ" }, | ||
| 219 | }; | ||
| 220 | } | ||
| 221 | } | ||