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 * (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved 28 * (C) Copyright IBM Corp. 1996 - 1999 - 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.ja; 78 79 import sun.util.resources.ParallelListResourceBundle; 80 81 public class FormatData_ja extends ParallelListResourceBundle { 82 /** 83 * Overrides ParallelListResourceBundle 84 */ 85 @Override 86 protected final Object[][] getContents() { 87 // era strings for Japanese imperial calendar 88 final String[] japaneseEras = { 89 "\u897f\u66a6", // Seireki (Gregorian) 90 "\u660e\u6cbb", // Meiji 91 "\u5927\u6b63", // Taisho 92 "\u662d\u548c", // Showa 93 "\u5e73\u6210", // Heisei 94 }; 95 final String[] rocEras = { 96 "\u6c11\u56fd\u524d", 97 "\u6c11\u56fd", 98 }; 99 return new Object[][] { 100 { "MonthNames", 101 new String[] { 102 "1\u6708", // january 103 "2\u6708", // february 104 "3\u6708", // march 105 "4\u6708", // april 106 "5\u6708", // may 107 "6\u6708", // june 108 "7\u6708", // july 109 "8\u6708", // august 110 "9\u6708", // september 111 "10\u6708", // october 112 "11\u6708", // november 113 "12\u6708", // december 114 "" // month 13 if applicable 115 } 116 }, 117 { "MonthAbbreviations", 118 new String[] { 119 "1", // abb january 120 "2", // abb february 121 "3", // abb march 122 "4", // abb april 123 "5", // abb may 124 "6", // abb june 125 "7", // abb july 126 "8", // abb august 127 "9", // abb september 128 "10", // abb october 129 "11", // abb november 130 "12", // abb december 131 "" // abb month 13 if applicable 132 } 133 }, 134 { "DayNames", 135 new String[] { 136 "\u65e5\u66dc\u65e5", // Sunday 137 "\u6708\u66dc\u65e5", // Monday 138 "\u706b\u66dc\u65e5", // Tuesday 139 "\u6c34\u66dc\u65e5", // Wednesday 140 "\u6728\u66dc\u65e5", // Thursday 141 "\u91d1\u66dc\u65e5", // Friday 142 "\u571f\u66dc\u65e5" // Saturday 143 } 144 }, 145 { "DayAbbreviations", 146 new String[] { 147 "\u65e5", // abb Sunday 148 "\u6708", // abb Monday 149 "\u706b", // abb Tuesday 150 "\u6c34", // abb Wednesday 151 "\u6728", // abb Thursday 152 "\u91d1", // abb Friday 153 "\u571f" // abb Saturday 154 } 155 }, 156 { "DayNarrows", 157 new String[] { 158 "\u65e5", 159 "\u6708", 160 "\u706b", 161 "\u6c34", 162 "\u6728", 163 "\u91d1", 164 "\u571f", 165 } 166 }, 167 { "AmPmMarkers", 168 new String[] { 169 "\u5348\u524d", // am marker 170 "\u5348\u5f8c" // pm marker 171 } 172 }, 173 { "Eras", 174 new String[] { // era strings for GregorianCalendar 175 "\u7d00\u5143\u524d", 176 "\u897f\u66a6" 177 } 178 }, 179 { "buddhist.Eras", 180 new String[] { // era strings for Thai Buddhist calendar 181 "\u7d00\u5143\u524d", // Kigenzen 182 "\u4ecf\u66a6", // Butsureki 183 } 184 }, 185 { "japanese.Eras", japaneseEras }, 186 { "japanese.FirstYear", 187 new String[] { // first year name 188 "\u5143", // "Gan"-nen 189 } 190 }, 191 { "NumberElements", 192 new String[] { 193 ".", // decimal separator 194 ",", // group (thousands) separator 195 ";", // list separator 196 "%", // percent sign 197 "0", // native 0 digit 198 "#", // pattern digit 199 "-", // minus sign 200 "E", // exponential 201 "\u2030", // per mille 202 "\u221e", // infinity 203 "\ufffd" // NaN 204 } 205 }, 206 { "TimePatterns", 207 new String[] { 208 "H'\u6642'mm'\u5206'ss'\u79d2' z", // full time pattern 209 "H:mm:ss z", // long time pattern 210 "H:mm:ss", // medium time pattern 211 "H:mm", // short time pattern 212 } 213 }, 214 { "DatePatterns", 215 new String[] { 216 "yyyy'\u5e74'M'\u6708'd'\u65e5'", // full date pattern 217 "yyyy/MM/dd", // long date pattern 218 "yyyy/MM/dd", // medium date pattern 219 "yy/MM/dd", // short date pattern 220 } 221 }, 222 { "DateTimePatterns", 223 new String[] { 224 "{1} {0}" // date-time pattern 225 } 226 }, 227 { "japanese.DatePatterns", 228 new String[] { 229 "GGGGyyyy'\u5e74'M'\u6708'd'\u65e5'", // full date pattern 230 "Gy.MM.dd", // long date pattern 231 "Gy.MM.dd", // medium date pattern 232 "Gy.MM.dd", // short date pattern 233 } 234 }, 235 { "japanese.TimePatterns", 236 new String[] { 237 "H'\u6642'mm'\u5206'ss'\u79d2' z", // full time pattern 238 "H:mm:ss z", // long time pattern 239 "H:mm:ss", // medium time pattern 240 "H:mm", // short time pattern 241 } 242 }, 243 { "japanese.DateTimePatterns", 244 new String[] { 245 "{1} {0}" // date-time pattern 246 } 247 }, 248 { "DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ" }, 249 }; 250 } 251 }