jdk/src/share/classes/sun/text/resources/FormatData.java
changeset 16852 60207b2b4b42
parent 15658 55b829ca2334
child 19371 bb9611d0308c
equal deleted inserted replaced
16851:3bbdae468b05 16852:60207b2b4b42
    77  * of the copyright holder.
    77  * of the copyright holder.
    78  */
    78  */
    79 
    79 
    80 package sun.text.resources;
    80 package sun.text.resources;
    81 
    81 
    82 import java.util.ListResourceBundle;
    82 import sun.util.resources.ParallelListResourceBundle;
    83 
    83 
    84 public class FormatData extends ListResourceBundle {
    84 public class FormatData extends ParallelListResourceBundle {
    85     /**
    85     /**
    86      * Overrides ListResourceBundle
    86      * Overrides ListResourceBundle
    87      */
    87      */
    88     @Override
    88     @Override
    89     protected final Object[][] getContents() {
    89     protected final Object[][] getContents() {
   113             "",
   113             "",
   114             "Meiji",
   114             "Meiji",
   115             "Taisho",
   115             "Taisho",
   116             "Showa",
   116             "Showa",
   117             "Heisei",
   117             "Heisei",
   118         };
       
   119 
       
   120         // Minguo era strings
       
   121         final String[] rocEras ={
       
   122             "Before R.O.C.",
       
   123             "R.O.C.",
       
   124         };
   118         };
   125 
   119 
   126         return new Object[][] {
   120         return new Object[][] {
   127             { "MonthNames",
   121             { "MonthNames",
   128                 new String[] {
   122                 new String[] {
   156                     "Nov", // abb november
   150                     "Nov", // abb november
   157                     "Dec", // abb december
   151                     "Dec", // abb december
   158                     "" // abb month 13 if applicable
   152                     "" // abb month 13 if applicable
   159                 }
   153                 }
   160             },
   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             },
   161             { "DayNames",
   172             { "DayNames",
   162                 new String[] {
   173                 new String[] {
   163                     "Sunday", // Sunday
   174                     "Sunday", // Sunday
   164                     "Monday", // Monday
   175                     "Monday", // Monday
   165                     "Tuesday", // Tuesday
   176                     "Tuesday", // Tuesday
   203                     "p"  // pm marker
   214                     "p"  // pm marker
   204                 }
   215                 }
   205             },
   216             },
   206             { "Eras",
   217             { "Eras",
   207                 julianEras },
   218                 julianEras },
   208             { "cldr.long.Eras",
   219             { "short.Eras",
   209                 new String[] {
       
   210                     "Before Christ",
       
   211                     "Anno Domini"
       
   212                 }
       
   213             },
       
   214             { "cldr.short.Eras",
       
   215                 julianEras },
   220                 julianEras },
   216             { "narrow.Eras",
   221             { "narrow.Eras",
   217                 new String[] {
   222                 new String[] {
   218                     "B",
   223                     "B",
   219                     "A",
   224                     "A",
   227             },
   232             },
   228             { "buddhist.narrow.Eras",
   233             { "buddhist.narrow.Eras",
   229               buddhistEras
   234               buddhistEras
   230             },
   235             },
   231             { "japanese.Eras",
   236             { "japanese.Eras",
   232                 japaneseEras },
       
   233             { "cldr.japanese.long.Eras",
       
   234                 japaneseEras },
       
   235             { "cldr.japanese.short.Eras",
       
   236                 japaneseEras },
   237                 japaneseEras },
   237             { "japanese.short.Eras",
   238             { "japanese.short.Eras",
   238                 japaneseEraAbbrs
   239                 japaneseEraAbbrs
   239             },
   240             },
   240             { "japanese.narrow.Eras",
   241             { "japanese.narrow.Eras",
   820                     "H:mm:ss z",          // long time pattern
   821                     "H:mm:ss z",          // long time pattern
   821                     "H:mm:ss",            // medium time pattern
   822                     "H:mm:ss",            // medium time pattern
   822                     "H:mm",               // short time pattern
   823                     "H:mm",               // short time pattern
   823                 }
   824                 }
   824             },
   825             },
   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",
   826             { "buddhist.DatePatterns",
   834                 new String[] {
   827                 new String[] {
   835                     "EEEE d MMMM G yyyy", // full date pattern
   828                     "EEEE d MMMM G yyyy", // full date pattern
   836                     "d MMMM yyyy",        // long date pattern
   829                     "d MMMM yyyy",        // long date pattern
   837                     "d MMM yyyy",         // medium date pattern
   830                     "d MMM yyyy",         // medium date pattern
   849                     "h:mm:ss a z",             // long time pattern
   842                     "h:mm:ss a z",             // long time pattern
   850                     "h:mm:ss a",               // medium time pattern
   843                     "h:mm:ss a",               // medium time pattern
   851                     "h:mm a",                  // short time pattern
   844                     "h:mm a",                  // short time pattern
   852                 }
   845                 }
   853             },
   846             },
   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",
   847             { "japanese.DatePatterns",
   863                 new String[] {
   848                 new String[] {
   864                     "GGGG yyyy MMMM d (EEEE)", // full date pattern
   849                     "GGGG yyyy MMMM d (EEEE)", // full date pattern
   865                     "GGGG yyyy MMMM d",        // long date pattern
   850                     "GGGG yyyy MMMM d",        // long date pattern
   866                     "GGGG yyyy MMM d",         // medium date pattern
   851                     "GGGG yyyy MMM d",         // medium date pattern
   870             { "japanese.DateTimePatterns",
   855             { "japanese.DateTimePatterns",
   871                 new String[] {
   856                 new String[] {
   872                     "{1} {0}"                  // date-time pattern
   857                     "{1} {0}"                  // date-time pattern
   873                 }
   858                 }
   874             },
   859             },
   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" },
   860             { "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         };
   861         };
   969     }
   862     }
   970 }
   863 }