jdk/src/share/classes/sun/text/resources/FormatData.java
changeset 15658 55b829ca2334
parent 15281 dd43cb9be0e1
child 16852 60207b2b4b42
equal deleted inserted replaced
15657:c588664d547e 15658:55b829ca2334
    83 
    83 
    84 public class FormatData extends ListResourceBundle {
    84 public class FormatData extends ListResourceBundle {
    85     /**
    85     /**
    86      * Overrides ListResourceBundle
    86      * Overrides ListResourceBundle
    87      */
    87      */
       
    88     @Override
    88     protected final Object[][] getContents() {
    89     protected final Object[][] getContents() {
    89         final String[] buddhistEras = new String[] { // Thai Buddhist calendar era strings
    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 = {
    90             "BC",     // BC
    98             "BC",     // BC
    91             "B.E."    // Buddhist Era
    99             "B.E."    // Buddhist Era
    92         };
   100         };
    93 
   101 
    94         // Japanese imperial calendar era abbreviations
   102         // Japanese imperial calendar era abbreviations
    95         final String[] japaneseEraAbbrs = new String[] {
   103         final String[] japaneseEraAbbrs = {
    96             "",
   104             "",
    97             "M",
   105             "M",
    98             "T",
   106             "T",
    99             "S",
   107             "S",
   100             "H",
   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.",
   101         };
   124         };
   102 
   125 
   103         return new Object[][] {
   126         return new Object[][] {
   104             { "MonthNames",
   127             { "MonthNames",
   105                 new String[] {
   128                 new String[] {
   179                     "a", // am marker
   202                     "a", // am marker
   180                     "p"  // pm marker
   203                     "p"  // pm marker
   181                 }
   204                 }
   182             },
   205             },
   183             { "Eras",
   206             { "Eras",
   184                 new String[] { // era strings for GregorianCalendar
   207                 julianEras },
   185                     "BC",
   208             { "cldr.long.Eras",
   186                     "AD"
   209                 new String[] {
   187                 }
   210                     "Before Christ",
   188             },
   211                     "Anno Domini"
       
   212                 }
       
   213             },
       
   214             { "cldr.short.Eras",
       
   215                 julianEras },
   189             { "narrow.Eras",
   216             { "narrow.Eras",
   190                 new String[] {
   217                 new String[] {
   191                     "B",
   218                     "B",
   192                     "A",
   219                     "A",
   193                 }
   220                 }
   200             },
   227             },
   201             { "buddhist.narrow.Eras",
   228             { "buddhist.narrow.Eras",
   202               buddhistEras
   229               buddhistEras
   203             },
   230             },
   204             { "japanese.Eras",
   231             { "japanese.Eras",
   205                 new String[] { // Japanese imperial calendar era strings
   232                 japaneseEras },
   206                     "",
   233             { "cldr.japanese.long.Eras",
   207                     "Meiji",
   234                 japaneseEras },
   208                     "Taisho",
   235             { "cldr.japanese.short.Eras",
   209                     "Showa",
   236                 japaneseEras },
   210                     "Heisei",
       
   211                 }
       
   212             },
       
   213             { "japanese.short.Eras",
   237             { "japanese.short.Eras",
   214               japaneseEraAbbrs
   238                 japaneseEraAbbrs
   215             },
   239             },
   216             { "japanese.narrow.Eras",
   240             { "japanese.narrow.Eras",
   217               japaneseEraAbbrs
   241                 japaneseEraAbbrs
   218             },
   242             },
   219             { "japanese.FirstYear",
   243             { "japanese.FirstYear",
   220                 new String[] { // Japanese imperial calendar year name
   244                 new String[] { // Japanese imperial calendar year name
   221                     // empty in English
   245                     // empty in English
   222                 }
   246                 }
   846             { "japanese.DateTimePatterns",
   870             { "japanese.DateTimePatterns",
   847                 new String[] {
   871                 new String[] {
   848                     "{1} {0}"                  // date-time pattern
   872                     "{1} {0}"                  // date-time pattern
   849                 }
   873                 }
   850             },
   874             },
   851             { "roc.Eras",
   875             { "roc.Eras", rocEras },
   852                 new String[] {
   876             { "roc.short.Eras", rocEras },
   853                     "Before R.O.C.",
       
   854                     "R.O.C.",
       
   855                 }
       
   856             },
       
   857             { "cldr.roc.DatePatterns",
   877             { "cldr.roc.DatePatterns",
   858                 new String[] {
   878                 new String[] {
   859                     "EEEE, G y MMMM dd",
   879                     "EEEE, G y MMMM dd",
   860                     "G y MMMM d",
   880                     "G y MMMM d",
   861                     "G y MMM d",
   881                     "G y MMM d",