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 @Override
89 protected final Object[][] getContents() {
90 // Julian calendar era strings
91 final String[] julianEras = {
92 "BC",
93 "AD"
94 };
95
96 // Thai Buddhist calendar era strings
97 final String[] buddhistEras = {
98 "BC", // BC
99 "B.E." // Buddhist Era
100 };
101
102 // Japanese imperial calendar era abbreviations
103 final String[] japaneseEraAbbrs = {
104 "",
105 "M",
106 "T",
107 "S",
108 "H",
109 };
110
111 // Japanese imperial calendar era strings
112 final String[] japaneseEras = {
113 "",
114 "Meiji",
115 "Taisho",
116 "Showa",
117 "Heisei",
118 };
119
120 // Minguo era strings
121 final String[] rocEras ={
122 "Before R.O.C.",
123 "R.O.C.",
124 };
125
126 return new Object[][] {
127 { "MonthNames",
128 new String[] {
129 "January", // january
130 "February", // february
131 "March", // march
132 "April", // april
133 "May", // may
134 "June", // june
135 "July", // july
136 "August", // august
137 "September", // september
138 "October", // october
139 "November", // november
140 "December", // december
141 "" // month 13 if applicable
142 }
143 },
144 { "MonthAbbreviations",
145 new String[] {
146 "Jan", // abb january
147 "Feb", // abb february
148 "Mar", // abb march
149 "Apr", // abb april
150 "May", // abb may
151 "Jun", // abb june
152 "Jul", // abb july
153 "Aug", // abb august
154 "Sep", // abb september
155 "Oct", // abb october
156 "Nov", // abb november
157 "Dec", // abb december
158 "" // abb month 13 if applicable
159 }
160 },
161 { "DayNames",
162 new String[] {
163 "Sunday", // Sunday
164 "Monday", // Monday
165 "Tuesday", // Tuesday
166 "Wednesday", // Wednesday
167 "Thursday", // Thursday
168 "Friday", // Friday
169 "Saturday" // Saturday
170 }
171 },
172 { "DayAbbreviations",
173 new String[] {
174 "Sun", // abb Sunday
175 "Mon", // abb Monday
176 "Tue", // abb Tuesday
177 "Wed", // abb Wednesday
178 "Thu", // abb Thursday
179 "Fri", // abb Friday
180 "Sat" // abb Saturday
188 "W",
189 "T",
190 "F",
191 "S",
192 }
193 },
194 { "AmPmMarkers",
195 new String[] {
196 "AM", // am marker
197 "PM" // pm marker
198 }
199 },
200 { "narrow.AmPmMarkers",
201 new String[] {
202 "a", // am marker
203 "p" // pm marker
204 }
205 },
206 { "Eras",
207 julianEras },
208 { "cldr.long.Eras",
209 new String[] {
210 "Before Christ",
211 "Anno Domini"
212 }
213 },
214 { "cldr.short.Eras",
215 julianEras },
216 { "narrow.Eras",
217 new String[] {
218 "B",
219 "A",
220 }
221 },
222 { "buddhist.Eras",
223 buddhistEras
224 },
225 { "buddhist.short.Eras",
226 buddhistEras
227 },
228 { "buddhist.narrow.Eras",
229 buddhistEras
230 },
231 { "japanese.Eras",
232 japaneseEras },
233 { "cldr.japanese.long.Eras",
234 japaneseEras },
235 { "cldr.japanese.short.Eras",
236 japaneseEras },
237 { "japanese.short.Eras",
238 japaneseEraAbbrs
239 },
240 { "japanese.narrow.Eras",
241 japaneseEraAbbrs
242 },
243 { "japanese.FirstYear",
244 new String[] { // Japanese imperial calendar year name
245 // empty in English
246 }
247 },
248 { "NumberPatterns",
249 new String[] {
250 "#,##0.###;-#,##0.###", // decimal pattern
251 "\u00a4 #,##0.00;-\u00a4 #,##0.00", // currency pattern
252 "#,##0%" // percent pattern
253 }
254 },
255 { "DefaultNumberingSystem", "" },
256 { "NumberElements",
805 new String[] {
806 "EEEE, MMMM d, yyyy", // full date pattern
807 "MMMM d, yyyy", // long date pattern
808 "MMM d, yyyy", // medium date pattern
809 "M/d/yy", // short date pattern
810 }
811 },
812 { "DateTimePatterns",
813 new String[] {
814 "{1} {0}" // date-time pattern
815 }
816 },
817 { "buddhist.TimePatterns",
818 new String[] {
819 "H:mm:ss z", // full time pattern
820 "H:mm:ss z", // long time pattern
821 "H:mm:ss", // medium time pattern
822 "H:mm", // short time pattern
823 }
824 },
825 { "cldr.buddhist.DatePatterns",
826 new String[] {
827 "EEEE, G y MMMM dd",
828 "G y MMMM d",
829 "G y MMM d",
830 "GGGGG yyyy-MM-dd",
831 }
832 },
833 { "buddhist.DatePatterns",
834 new String[] {
835 "EEEE d MMMM G yyyy", // full date pattern
836 "d MMMM yyyy", // long date pattern
837 "d MMM yyyy", // medium date pattern
838 "d/M/yyyy", // short date pattern
839 }
840 },
841 { "buddhist.DateTimePatterns",
842 new String[] {
843 "{1}, {0}" // date-time pattern
844 }
845 },
846 { "japanese.TimePatterns",
847 new String[] {
848 "h:mm:ss a z", // full time pattern
849 "h:mm:ss a z", // long time pattern
850 "h:mm:ss a", // medium time pattern
851 "h:mm a", // short time pattern
852 }
853 },
854 { "cldr.japanese.DatePatterns",
855 new String[] {
856 "EEEE, G y MMMM dd",
857 "G y MMMM d",
858 "G y MMM d",
859 "GGGGG yy-MM-dd",
860 }
861 },
862 { "japanese.DatePatterns",
863 new String[] {
864 "GGGG yyyy MMMM d (EEEE)", // full date pattern
865 "GGGG yyyy MMMM d", // long date pattern
866 "GGGG yyyy MMM d", // medium date pattern
867 "Gy.MM.dd", // short date pattern
868 }
869 },
870 { "japanese.DateTimePatterns",
871 new String[] {
872 "{1} {0}" // date-time pattern
873 }
874 },
875 { "roc.Eras", rocEras },
876 { "roc.short.Eras", rocEras },
877 { "cldr.roc.DatePatterns",
878 new String[] {
879 "EEEE, G y MMMM dd",
880 "G y MMMM d",
881 "G y MMM d",
882 "GGGGG yyy-MM-dd",
883 }
884 },
885 { "roc.DatePatterns",
886 new String[] {
887 "EEEE, GGGG y MMMM dd",
888 "GGGG y MMMM d",
889 "GGGG y MMM d",
890 "G yyy-MM-dd",
891 }
892 },
893 { "islamic.MonthNames",
894 new String[] {
895 "Muharram",
896 "Safar",
897 "Rabi\u02bb I",
898 "Rabi\u02bb II",
899 "Jumada I",
900 "Jumada II",
901 "Rajab",
902 "Sha\u02bbban",
903 "Ramadan",
904 "Shawwal",
905 "Dhu\u02bbl-Qi\u02bbdah",
906 "Dhu\u02bbl-Hijjah",
907 "",
908 }
909 },
910 { "islamic.MonthAbbreviations",
911 new String[] {
912 "Muh.",
913 "Saf.",
914 "Rab. I",
915 "Rab. II",
916 "Jum. I",
917 "Jum. II",
918 "Raj.",
919 "Sha.",
920 "Ram.",
921 "Shaw.",
922 "Dhu\u02bbl-Q.",
923 "Dhu\u02bbl-H.",
924 "",
925 }
926 },
927 { "islamic.Eras",
928 new String[] {
929 "",
930 "AH",
931 }
932 },
933 { "cldr.islamic.DatePatterns",
934 new String[] {
935 "EEEE, MMMM d, y G",
936 "MMMM d, y G",
937 "MMM d, y G",
938 "M/d/yy G",
939 }
940 },
941 { "islamic.DatePatterns",
942 new String[] {
943 "EEEE, MMMM d, y GGGG",
944 "MMMM d, y GGGG",
945 "MMM d, y GGGG",
946 "M/d/yy GGGG",
947 }
948 },
949 { "DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ" },
950 { "calendarname.islamic-civil", "Islamic-Civil Calendar" },
951 { "calendarname.islamicc", "Islamic-Civil Calendar" },
952 { "calendarname.islamic", "Islamic Calendar" },
953 { "calendarname.japanese", "Japanese Calendar" },
954 { "calendarname.gregorian", "Gregorian Calendar" },
955 { "calendarname.gregory", "Gregorian Calendar" },
956 { "calendarname.roc", "Minguo Calendar" },
957 { "calendarname.buddhist", "Buddhist Calendar" },
958 { "field.era", "Era" },
959 { "field.year", "Year" },
960 { "field.month", "Month" },
961 { "field.week", "Week" },
962 { "field.weekday", "Day of the Week" },
963 { "field.dayperiod", "Dayperiod" },
964 { "field.hour", "Hour" },
965 { "field.minute", "Minute" },
966 { "field.second", "Second" },
967 { "field.zone", "Zone" },
968 };
969 }
970 }
|
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 sun.util.resources.ParallelListResourceBundle;
83
84 public class FormatData extends ParallelListResourceBundle {
85 /**
86 * Overrides ListResourceBundle
87 */
88 @Override
89 protected final Object[][] getContents() {
90 // Julian calendar era strings
91 final String[] julianEras = {
92 "BC",
93 "AD"
94 };
95
96 // Thai Buddhist calendar era strings
97 final String[] buddhistEras = {
98 "BC", // BC
99 "B.E." // Buddhist Era
100 };
101
102 // Japanese imperial calendar era abbreviations
103 final String[] japaneseEraAbbrs = {
104 "",
105 "M",
106 "T",
107 "S",
108 "H",
109 };
110
111 // Japanese imperial calendar era strings
112 final String[] japaneseEras = {
113 "",
114 "Meiji",
115 "Taisho",
116 "Showa",
117 "Heisei",
118 };
119
120 return new Object[][] {
121 { "MonthNames",
122 new String[] {
123 "January", // january
124 "February", // february
125 "March", // march
126 "April", // april
127 "May", // may
128 "June", // june
129 "July", // july
130 "August", // august
131 "September", // september
132 "October", // october
133 "November", // november
134 "December", // december
135 "" // month 13 if applicable
136 }
137 },
138 { "MonthAbbreviations",
139 new String[] {
140 "Jan", // abb january
141 "Feb", // abb february
142 "Mar", // abb march
143 "Apr", // abb april
144 "May", // abb may
145 "Jun", // abb june
146 "Jul", // abb july
147 "Aug", // abb august
148 "Sep", // abb september
149 "Oct", // abb october
150 "Nov", // abb november
151 "Dec", // abb december
152 "" // abb month 13 if applicable
153 }
154 },
155 { "MonthNarrows",
156 new String[] {
157 "J",
158 "F",
159 "M",
160 "A",
161 "M",
162 "J",
163 "J",
164 "A",
165 "S",
166 "O",
167 "N",
168 "D",
169 "",
170 }
171 },
172 { "DayNames",
173 new String[] {
174 "Sunday", // Sunday
175 "Monday", // Monday
176 "Tuesday", // Tuesday
177 "Wednesday", // Wednesday
178 "Thursday", // Thursday
179 "Friday", // Friday
180 "Saturday" // Saturday
181 }
182 },
183 { "DayAbbreviations",
184 new String[] {
185 "Sun", // abb Sunday
186 "Mon", // abb Monday
187 "Tue", // abb Tuesday
188 "Wed", // abb Wednesday
189 "Thu", // abb Thursday
190 "Fri", // abb Friday
191 "Sat" // abb Saturday
199 "W",
200 "T",
201 "F",
202 "S",
203 }
204 },
205 { "AmPmMarkers",
206 new String[] {
207 "AM", // am marker
208 "PM" // pm marker
209 }
210 },
211 { "narrow.AmPmMarkers",
212 new String[] {
213 "a", // am marker
214 "p" // pm marker
215 }
216 },
217 { "Eras",
218 julianEras },
219 { "short.Eras",
220 julianEras },
221 { "narrow.Eras",
222 new String[] {
223 "B",
224 "A",
225 }
226 },
227 { "buddhist.Eras",
228 buddhistEras
229 },
230 { "buddhist.short.Eras",
231 buddhistEras
232 },
233 { "buddhist.narrow.Eras",
234 buddhistEras
235 },
236 { "japanese.Eras",
237 japaneseEras },
238 { "japanese.short.Eras",
239 japaneseEraAbbrs
240 },
241 { "japanese.narrow.Eras",
242 japaneseEraAbbrs
243 },
244 { "japanese.FirstYear",
245 new String[] { // Japanese imperial calendar year name
246 // empty in English
247 }
248 },
249 { "NumberPatterns",
250 new String[] {
251 "#,##0.###;-#,##0.###", // decimal pattern
252 "\u00a4 #,##0.00;-\u00a4 #,##0.00", // currency pattern
253 "#,##0%" // percent pattern
254 }
255 },
256 { "DefaultNumberingSystem", "" },
257 { "NumberElements",
806 new String[] {
807 "EEEE, MMMM d, yyyy", // full date pattern
808 "MMMM d, yyyy", // long date pattern
809 "MMM d, yyyy", // medium date pattern
810 "M/d/yy", // short date pattern
811 }
812 },
813 { "DateTimePatterns",
814 new String[] {
815 "{1} {0}" // date-time pattern
816 }
817 },
818 { "buddhist.TimePatterns",
819 new String[] {
820 "H:mm:ss z", // full time pattern
821 "H:mm:ss z", // long time pattern
822 "H:mm:ss", // medium time pattern
823 "H:mm", // short time pattern
824 }
825 },
826 { "buddhist.DatePatterns",
827 new String[] {
828 "EEEE d MMMM G yyyy", // full date pattern
829 "d MMMM yyyy", // long date pattern
830 "d MMM yyyy", // medium date pattern
831 "d/M/yyyy", // short date pattern
832 }
833 },
834 { "buddhist.DateTimePatterns",
835 new String[] {
836 "{1}, {0}" // date-time pattern
837 }
838 },
839 { "japanese.TimePatterns",
840 new String[] {
841 "h:mm:ss a z", // full time pattern
842 "h:mm:ss a z", // long time pattern
843 "h:mm:ss a", // medium time pattern
844 "h:mm a", // short time pattern
845 }
846 },
847 { "japanese.DatePatterns",
848 new String[] {
849 "GGGG yyyy MMMM d (EEEE)", // full date pattern
850 "GGGG yyyy MMMM d", // long date pattern
851 "GGGG yyyy MMM d", // medium date pattern
852 "Gy.MM.dd", // short date pattern
853 }
854 },
855 { "japanese.DateTimePatterns",
856 new String[] {
857 "{1} {0}" // date-time pattern
858 }
859 },
860 { "DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ" },
861 };
862 }
863 }
|