src/share/classes/sun/text/resources/FormatData.java

Print this page




  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[] {


 205                     "W",
 206                     "T",
 207                     "F",
 208                     "S",
 209                 }
 210             },
 211             { "AmPmMarkers",
 212                 new String[] {
 213                     "AM", // am marker
 214                     "PM" // pm marker
 215                 }
 216             },
 217             { "narrow.AmPmMarkers",
 218                 new String[] {
 219                     "a", // am marker
 220                     "p"  // pm marker
 221                 }
 222             },
 223             { "Eras",
 224                 julianEras },
 225             { "cldr.long.Eras",
 226                 new String[] {
 227                     "Before Christ",
 228                     "Anno Domini"
 229                 }
 230             },
 231             { "cldr.short.Eras",
 232                 julianEras },
 233             { "narrow.Eras",
 234                 new String[] {
 235                     "B",
 236                     "A",
 237                 }
 238             },
 239             { "buddhist.Eras",
 240               buddhistEras
 241             },
 242             { "buddhist.short.Eras",
 243               buddhistEras
 244             },
 245             { "buddhist.narrow.Eras",
 246               buddhistEras
 247             },
 248             { "japanese.Eras",
 249                 japaneseEras },
 250             { "cldr.japanese.long.Eras",
 251                 japaneseEras },
 252             { "cldr.japanese.short.Eras",
 253                 japaneseEras },
 254             { "japanese.short.Eras",
 255                 japaneseEraAbbrs
 256             },
 257             { "japanese.narrow.Eras",
 258                 japaneseEraAbbrs
 259             },
 260             { "japanese.FirstYear",
 261                 new String[] { // Japanese imperial calendar year name
 262                     // empty in English
 263                 }
 264             },
 265             { "NumberPatterns",
 266                 new String[] {
 267                     "#,##0.###;-#,##0.###", // decimal pattern
 268                     "\u00a4 #,##0.00;-\u00a4 #,##0.00", // currency pattern
 269                     "#,##0%" // percent pattern
 270                 }
 271             },
 272             { "DefaultNumberingSystem", "" },
 273             { "NumberElements",


 822                 new String[] {
 823                     "EEEE, MMMM d, yyyy", // full date pattern
 824                     "MMMM d, yyyy",       // long date pattern
 825                     "MMM d, yyyy",        // medium date pattern
 826                     "M/d/yy",             // short date pattern
 827                 }
 828             },
 829             { "DateTimePatterns",
 830                 new String[] {
 831                     "{1} {0}"             // date-time pattern
 832                 }
 833             },
 834             { "buddhist.TimePatterns",
 835                 new String[] {
 836                     "H:mm:ss z",          // full time pattern
 837                     "H:mm:ss z",          // long time pattern
 838                     "H:mm:ss",            // medium time pattern
 839                     "H:mm",               // short time pattern
 840                 }
 841             },
 842             { "cldr.buddhist.DatePatterns",
 843                 new String[] {
 844                     "EEEE, G y MMMM dd",
 845                     "G y MMMM d",
 846                     "G y MMM d",
 847                     "GGGGG yyyy-MM-dd",
 848                 }
 849             },
 850             { "buddhist.DatePatterns",
 851                 new String[] {
 852                     "EEEE d MMMM G yyyy", // full date pattern
 853                     "d MMMM yyyy",        // long date pattern
 854                     "d MMM yyyy",         // medium date pattern
 855                     "d/M/yyyy",           // short date pattern
 856                 }
 857             },
 858             { "buddhist.DateTimePatterns",
 859                 new String[] {
 860                     "{1}, {0}"            // date-time pattern
 861                 }
 862             },
 863             { "japanese.TimePatterns",
 864                 new String[] {
 865                     "h:mm:ss a z",             // full time pattern
 866                     "h:mm:ss a z",             // long time pattern
 867                     "h:mm:ss a",               // medium time pattern
 868                     "h:mm a",                  // short time pattern
 869                 }
 870             },
 871             { "cldr.japanese.DatePatterns",
 872                 new String[] {
 873                     "EEEE, G y MMMM dd",
 874                     "G y MMMM d",
 875                     "G y MMM d",
 876                     "GGGGG yy-MM-dd",
 877                 }
 878             },
 879             { "japanese.DatePatterns",
 880                 new String[] {
 881                     "GGGG yyyy MMMM d (EEEE)", // full date pattern
 882                     "GGGG yyyy MMMM d",        // long date pattern
 883                     "GGGG yyyy MMM d",         // medium date pattern
 884                     "Gy.MM.dd",                // short date pattern
 885                 }
 886             },
 887             { "japanese.DateTimePatterns",
 888                 new String[] {
 889                     "{1} {0}"                  // date-time pattern
 890                 }
 891             },
 892             { "roc.Eras", rocEras },
 893             { "roc.short.Eras", rocEras },
 894             { "cldr.roc.DatePatterns",
 895                 new String[] {
 896                     "EEEE, G y MMMM dd",
 897                     "G y MMMM d",
 898                     "G y MMM d",
 899                     "GGGGG yyy-MM-dd",
 900                 }
 901             },
 902             { "roc.DatePatterns",
 903                 new String[] {
 904                     "EEEE, GGGG y MMMM dd",
 905                     "GGGG y MMMM d",
 906                     "GGGG y MMM d",
 907                     "G yyy-MM-dd",
 908                 }
 909             },
 910             { "islamic.MonthNames",
 911                 new String[] {
 912                     "Muharram",
 913                     "Safar",
 914                     "Rabi\u02bb I",
 915                     "Rabi\u02bb II",
 916                     "Jumada I",
 917                     "Jumada II",
 918                     "Rajab",
 919                     "Sha\u02bbban",
 920                     "Ramadan",
 921                     "Shawwal",
 922                     "Dhu\u02bbl-Qi\u02bbdah",
 923                     "Dhu\u02bbl-Hijjah",
 924                     "",
 925                 }
 926             },
 927             { "islamic.MonthAbbreviations",
 928                 new String[] {
 929                     "Muh.",
 930                     "Saf.",
 931                     "Rab. I",
 932                     "Rab. II",
 933                     "Jum. I",
 934                     "Jum. II",
 935                     "Raj.",
 936                     "Sha.",
 937                     "Ram.",
 938                     "Shaw.",
 939                     "Dhu\u02bbl-Q.",
 940                     "Dhu\u02bbl-H.",
 941                     "",
 942                 }
 943             },
 944             { "islamic.Eras",
 945                 new String[] {
 946                     "",
 947                     "AH",
 948                 }
 949             },
 950             { "cldr.islamic.DatePatterns",
 951                 new String[] {
 952                     "EEEE, MMMM d, y G",
 953                     "MMMM d, y G",
 954                     "MMM d, y G",
 955                     "M/d/yy G",
 956                 }
 957             },
 958             { "islamic.DatePatterns",
 959                 new String[] {
 960                     "EEEE, MMMM d, y GGGG",
 961                     "MMMM d, y GGGG",
 962                     "MMM d, y GGGG",
 963                     "M/d/yy GGGG",
 964                 }
 965             },
 966             { "QuarterNames",
 967                 new String[] {
 968                     "1st quarter",
 969                     "2nd quarter",
 970                     "3rd quarter",
 971                     "4th quarter",
 972                 }
 973             },
 974             { "QuarterAbbreviations",
 975                 new String[] {
 976                     "Q1",
 977                     "Q2",
 978                     "Q3",
 979                     "Q4",
 980                 }
 981             },
 982             { "QuarterNarrows",
 983                 new String[] {
 984                     "1",
 985                     "2",
 986                     "3",
 987                     "4",
 988                 }
 989             },
 990             { "DateTimePatternChars", "GyMdkHmsSEDFwWahKzZ" },
 991             { "calendarname.islamic-civil", "Islamic-Civil Calendar" },
 992             { "calendarname.islamicc", "Islamic-Civil Calendar" },
 993             { "calendarname.islamic", "Islamic Calendar" },
 994             { "calendarname.japanese", "Japanese Calendar" },
 995             { "calendarname.gregorian", "Gregorian Calendar" },
 996             { "calendarname.gregory", "Gregorian Calendar" },
 997             { "calendarname.roc", "Minguo Calendar" },
 998             { "calendarname.buddhist", "Buddhist Calendar" },
 999             { "field.era", "Era" },
1000             { "field.year", "Year" },
1001             { "field.month", "Month" },
1002             { "field.week", "Week" },
1003             { "field.weekday", "Day of the Week" },
1004             { "field.dayperiod", "Dayperiod" },
1005             { "field.hour", "Hour" },
1006             { "field.minute", "Minute" },
1007             { "field.second", "Second" },
1008             { "field.zone", "Zone" },
1009         };
1010     }
1011 }


  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[] {


 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 }