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

Print this page




  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     protected final Object[][] getContents() {
  89         final String[] buddhistEras = new String[] { // Thai Buddhist calendar era strings







  90             "BC",     // BC
  91             "B.E."    // Buddhist Era
  92         };
  93 
  94         // Japanese imperial calendar era abbreviations
  95         final String[] japaneseEraAbbrs = new String[] {
  96             "",
  97             "M",
  98             "T",
  99             "S",
 100             "H",
 101         };
 102 















 103         return new Object[][] {
 104             { "MonthNames",
 105                 new String[] {
 106                     "January", // january
 107                     "February", // february
 108                     "March", // march
 109                     "April", // april
 110                     "May", // may
 111                     "June", // june
 112                     "July", // july
 113                     "August", // august
 114                     "September", // september
 115                     "October", // october
 116                     "November", // november
 117                     "December", // december
 118                     "" // month 13 if applicable
 119                 }
 120             },
 121             { "MonthAbbreviations",
 122                 new String[] {


 164                     "T",
 165                     "W",
 166                     "T",
 167                     "F",
 168                     "S",
 169                 }
 170             },
 171             { "AmPmMarkers",
 172                 new String[] {
 173                     "AM", // am marker
 174                     "PM" // pm marker
 175                 }
 176             },
 177             { "narrow.AmPmMarkers",
 178                 new String[] {
 179                     "a", // am marker
 180                     "p"  // pm marker
 181                 }
 182             },
 183             { "Eras",
 184                 new String[] { // era strings for GregorianCalendar
 185                     "BC",
 186                     "AD"


 187                 }
 188             },


 189             { "narrow.Eras",
 190                 new String[] {
 191                     "B",
 192                     "A",
 193                 }
 194             },
 195             { "buddhist.Eras",
 196               buddhistEras
 197             },
 198             { "buddhist.short.Eras",
 199               buddhistEras
 200             },
 201             { "buddhist.narrow.Eras",
 202               buddhistEras
 203             },
 204             { "japanese.Eras",
 205                 new String[] { // Japanese imperial calendar era strings
 206                     "",
 207                     "Meiji",
 208                     "Taisho",
 209                     "Showa",
 210                     "Heisei",
 211                 }
 212             },
 213             { "japanese.short.Eras",
 214               japaneseEraAbbrs
 215             },
 216             { "japanese.narrow.Eras",
 217               japaneseEraAbbrs
 218             },
 219             { "japanese.FirstYear",
 220                 new String[] { // Japanese imperial calendar year name
 221                     // empty in English
 222                 }
 223             },
 224             { "NumberPatterns",
 225                 new String[] {
 226                     "#,##0.###;-#,##0.###", // decimal pattern
 227                     "\u00a4 #,##0.00;-\u00a4 #,##0.00", // currency pattern
 228                     "#,##0%" // percent pattern
 229                 }
 230             },
 231             { "DefaultNumberingSystem", "" },
 232             { "NumberElements",


 831                 new String[] {
 832                     "EEEE, G y MMMM dd",
 833                     "G y MMMM d",
 834                     "G y MMM d",
 835                     "GGGGG yy-MM-dd",
 836                 }
 837             },
 838             { "japanese.DatePatterns",
 839                 new String[] {
 840                     "GGGG yyyy MMMM d (EEEE)", // full date pattern
 841                     "GGGG yyyy MMMM d",        // long date pattern
 842                     "GGGG yyyy MMM d",         // medium date pattern
 843                     "Gy.MM.dd",                // short date pattern
 844                 }
 845             },
 846             { "japanese.DateTimePatterns",
 847                 new String[] {
 848                     "{1} {0}"                  // date-time pattern
 849                 }
 850             },
 851             { "roc.Eras",
 852                 new String[] {
 853                     "Before R.O.C.",
 854                     "R.O.C.",
 855                 }
 856             },
 857             { "cldr.roc.DatePatterns",
 858                 new String[] {
 859                     "EEEE, G y MMMM dd",
 860                     "G y MMMM d",
 861                     "G y MMM d",
 862                     "GGGGG yyy-MM-dd",
 863                 }
 864             },
 865             { "roc.DatePatterns",
 866                 new String[] {
 867                     "EEEE, GGGG y MMMM dd",
 868                     "GGGG y MMMM d",
 869                     "GGGG y MMM d",
 870                     "G yyy-MM-dd",
 871                 }
 872             },
 873             { "islamic.MonthNames",
 874                 new String[] {
 875                     "Muharram",
 876                     "Safar",




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


 187                     "T",
 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",


 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",