--- a/jdk/src/share/classes/sun/text/resources/FormatData.java Tue Feb 12 16:02:14 2013 +0400
+++ b/jdk/src/share/classes/sun/text/resources/FormatData.java Tue Feb 12 09:25:43 2013 -0800
@@ -85,14 +85,22 @@
/**
* Overrides ListResourceBundle
*/
+ @Override
protected final Object[][] getContents() {
- final String[] buddhistEras = new String[] { // Thai Buddhist calendar era strings
+ // Julian calendar era strings
+ final String[] julianEras = {
+ "BC",
+ "AD"
+ };
+
+ // Thai Buddhist calendar era strings
+ final String[] buddhistEras = {
"BC", // BC
"B.E." // Buddhist Era
};
// Japanese imperial calendar era abbreviations
- final String[] japaneseEraAbbrs = new String[] {
+ final String[] japaneseEraAbbrs = {
"",
"M",
"T",
@@ -100,6 +108,21 @@
"H",
};
+ // Japanese imperial calendar era strings
+ final String[] japaneseEras = {
+ "",
+ "Meiji",
+ "Taisho",
+ "Showa",
+ "Heisei",
+ };
+
+ // Minguo era strings
+ final String[] rocEras ={
+ "Before R.O.C.",
+ "R.O.C.",
+ };
+
return new Object[][] {
{ "MonthNames",
new String[] {
@@ -181,11 +204,15 @@
}
},
{ "Eras",
- new String[] { // era strings for GregorianCalendar
- "BC",
- "AD"
+ julianEras },
+ { "cldr.long.Eras",
+ new String[] {
+ "Before Christ",
+ "Anno Domini"
}
},
+ { "cldr.short.Eras",
+ julianEras },
{ "narrow.Eras",
new String[] {
"B",
@@ -202,19 +229,16 @@
buddhistEras
},
{ "japanese.Eras",
- new String[] { // Japanese imperial calendar era strings
- "",
- "Meiji",
- "Taisho",
- "Showa",
- "Heisei",
- }
- },
+ japaneseEras },
+ { "cldr.japanese.long.Eras",
+ japaneseEras },
+ { "cldr.japanese.short.Eras",
+ japaneseEras },
{ "japanese.short.Eras",
- japaneseEraAbbrs
+ japaneseEraAbbrs
},
{ "japanese.narrow.Eras",
- japaneseEraAbbrs
+ japaneseEraAbbrs
},
{ "japanese.FirstYear",
new String[] { // Japanese imperial calendar year name
@@ -848,12 +872,8 @@
"{1} {0}" // date-time pattern
}
},
- { "roc.Eras",
- new String[] {
- "Before R.O.C.",
- "R.O.C.",
- }
- },
+ { "roc.Eras", rocEras },
+ { "roc.short.Eras", rocEras },
{ "cldr.roc.DatePatterns",
new String[] {
"EEEE, G y MMMM dd",