Source for gnu.java.locale.LocaleInformation_en

   1: /* LocaleInformation_en.java -- US English locale data
   2:    Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
   3: 
   4: This file is part of GNU Classpath.
   5: 
   6: GNU Classpath is free software; you can redistribute it and/or modify
   7: it under the terms of the GNU General Public License as published by
   8: the Free Software Foundation; either version 2, or (at your option)
   9: any later version.
  10:  
  11: GNU Classpath is distributed in the hope that it will be useful, but
  12: WITHOUT ANY WARRANTY; without even the implied warranty of
  13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14: General Public License for more details.
  15: 
  16: You should have received a copy of the GNU General Public License
  17: along with GNU Classpath; see the file COPYING.  If not, write to the
  18: Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  19: 02110-1301 USA.
  20: 
  21: Linking this library statically or dynamically with other modules is
  22: making a combined work based on this library.  Thus, the terms and
  23: conditions of the GNU General Public License cover the whole
  24: combination.
  25: 
  26: As a special exception, the copyright holders of this library give you
  27: permission to link this library with independent modules to produce an
  28: executable, regardless of the license terms of these independent
  29: modules, and to copy and distribute the resulting executable under
  30: terms of your choice, provided that you also meet, for each linked
  31: independent module, the terms and conditions of the license of that
  32: module.  An independent module is a module which is not derived from
  33: or based on this library.  If you modify this library, you may extend
  34: this exception to your version of the library, but you are not
  35: obligated to do so.  If you do not wish to do so, delete this
  36: exception statement from your version. */
  37: 
  38: 
  39: package gnu.java.locale;
  40: 
  41: import java.util.ListResourceBundle;
  42: 
  43: /**
  44:  * This class contains locale data for English.
  45:  */
  46: public class LocaleInformation_en extends ListResourceBundle
  47: {
  48: 
  49:   /*
  50:    * This area is used for defining object values
  51:    */
  52: 
  53:   /**
  54:    * This is the set of collation rules used by java.text.RuleBasedCollator 
  55:    * to sort strings properly.  See the documentation of that class for the 
  56:    * proper format.
  57:    */
  58:   // FIXME: this is nowhere near complete.
  59:   // In particular we must mark accents as ignorable,
  60:   // and probably other things as well.
  61:   private static final String collation_rules = 
  62:   "<0<1<2<3<4<5<6<7<8<9<A,a<b,B<c,C<d,D<e,E<f,F<g,G<h,H<i,I<j,J<k,K" +
  63:   "<l,L<m,M<n,N<o,O<p,P<q,Q<r,R<s,S<t,T<u,U<v,V<w,W<x,X<y,Y<z,Z";
  64: 
  65:   /**
  66:    * This is the list of months, fully spelled out
  67:    */
  68:   private static final String[] months =
  69:   {
  70:     "January", "February", "March", "April", "May", "June",
  71:     "July", "August", "September", "October", "November", "December", null
  72:   };
  73: 
  74:   /**
  75:    * This is the list of abbreviated month names
  76:    */
  77:   private static final String[] shortMonths =
  78:   {
  79:     "Jan", "Feb", "Mar", "Apr", "May", "Jun",
  80:     "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", null
  81:   };
  82: 
  83:   /**
  84:    * This is the list of weekdays, fully spelled out
  85:    */
  86:   private static final String[] weekdays =
  87:   {
  88:     null, "Sunday", "Monday", "Tuesday", "Wednesday",
  89:     "Thursday", "Friday", "Saturday"
  90:   };
  91: 
  92:   /**
  93:    * This is the list of abbreviated weekdays
  94:    */
  95:   private static final String[] shortWeekdays =
  96:   {
  97:     null, "Sun", "Mon", "Tue", "Wed",
  98:     "Thu", "Fri", "Sat"
  99:   };
 100: 
 101:   /**
 102:    * This is the list of AM/PM strings
 103:    */
 104:   private static final String[] ampms = { "AM", "PM" };
 105: 
 106:   /**
 107:    * This is the list of era identifiers
 108:    */
 109:   private static final String[] eras = { "BC", "AD" };
 110: 
 111:   private static final String[][] zoneStrings =
 112:   {
 113:     { "GMT", "Greenwich Mean Time", "GMT",
 114:       /**/   "Greenwich Mean Time", "GMT", "GMT" },
 115:     { "PST", "Pacific Standard Time", "PST",
 116:       /**/   "Pacific Daylight Time", "PDT", "San Francisco" },
 117:     { "MST", "Mountain Standard Time", "MST",
 118:       /**/   "Mountain Daylight Time", "MDT", "Denver" },
 119:     { "PNT", "Mountain Standard Time", "MST",
 120:       /**/   "Mountain Standard Time", "MST", "Phoenix" },
 121:     { "CST", "Central Standard Time", "CST",
 122:       /**/   "Central Daylight Time", "CDT", "Chicago" },
 123:     { "EST", "Eastern Standard Time", "EST",
 124:       /**/   "Eastern Daylight Time", "EDT", "Boston" },
 125:     { "IET", "Eastern Standard Time", "EST",
 126:       /**/   "Eastern Standard Time", "EST", "Indianapolis" },
 127:     { "PRT", "Atlantic Standard Time", "AST",
 128:       /**/   "Atlantic Daylight Time", "ADT", "Halifax" },
 129:     { "CNT", "Newfoundland Standard Time", "NST",
 130:       /**/   "Newfoundland Daylight Time", "NDT", "St. Johns" },
 131:     { "ECT", "Central European Standard Time", "CET",
 132:       /**/   "Central European Daylight Time", "CEST", "Paris" },
 133:     { "CTT", "China Standard Time", "CST",
 134:       /**/   "China Standard Time", "CST", "Shanghai" },
 135:     { "JST", "Japan Standard Time", "JST",
 136:       /**/   "Japan Standard Time", "JST", "Tokyo" },
 137:     { "HST", "Hawaii Standard Time", "HST",
 138:       /**/   "Hawaii Standard Time", "HST", "Honolulu" },
 139:     { "AST", "Alaska Standard Time", "AKST",
 140:       /**/   "Alaska Daylight Time", "AKDT", "Anchorage" }
 141:   };
 142: 
 143:   /*************************************************************************/
 144: 
 145:   /**
 146:    * This is the object array used to hold the keys and values
 147:    * for this bundle
 148:    */
 149: 
 150:   private static final Object[][] contents =
 151:   {
 152:     // For RuleBasedCollator
 153:     { "collation_rules", collation_rules },
 154: 
 155:     // For SimpleDateFormat/DateFormatSymbols
 156:     { "months", months },
 157:     { "shortMonths", shortMonths },
 158:     { "weekdays", weekdays },
 159:     { "shortWeekdays", shortWeekdays },
 160:     { "ampms", ampms },
 161:     { "eras", eras },
 162:     { "localPatternChars", "GyMdkHmsSEDFwWahKzYeugAZ" },
 163:     { "zoneStrings", zoneStrings },
 164: 
 165:     { "shortDateFormat", "M/d/yy" },         // Java's Y2K bug.
 166:     { "mediumDateFormat", "d-MMM-yy" },
 167:     { "longDateFormat", "MMMM d, yyyy" },
 168:     { "fullDateFormat", "EEEE MMMM d, yyyy G" },
 169:     { "defaultDateFormat", "d-MMMM-yy" },
 170:     { "shortTimeFormat", "h:mm a" },
 171:     { "mediumTimeFormat", "h:mm:ss a" },
 172:     { "longTimeFormat", "h:mm:ss a z" },
 173:     { "fullTimeFormat", "h:mm:ss;S 'o''clock' a z" },
 174:     { "defaultTimeFormat", "h:mm:ss a" },
 175: 
 176:     // For DecimalFormat/DecimalFormatSymbols
 177:     { "decimalSeparator", "." },
 178:     { "digit", "#" },
 179:     { "exponential", "E" },
 180:     { "groupingSeparator", "," },
 181:     { "infinity", "\u221e" },
 182:     { "NaN", "\ufffd" },
 183:     { "minusSign", "-" },
 184:     { "monetarySeparator", "." },
 185:     { "patternSeparator", ";" },
 186:     { "percent", "%" },
 187:     { "perMill", "\u2030" },
 188:     { "zeroDigit", "0" },
 189: 
 190:     // For NumberFormat.
 191:     { "numberFormat", "#,##0.###" },
 192:     { "percentFormat", "#,##0%" },
 193:   };
 194: 
 195:   /*************************************************************************/
 196: 
 197:   /**
 198:    * This method returns the object array of key, value pairs containing
 199:    * the data for this bundle.
 200:    *
 201:    * @return The key, value information.
 202:    */
 203:   public Object[][] getContents ()
 204:   {
 205:     return contents;
 206:   }
 207: }