OSDN Git Service

Add license clarification.
[pf3gnuchains/gcc-fork.git] / libjava / gnu / java / locale / LocaleInformation_en.java
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., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 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 import java.util.Calendar;
43 import java.util.Date;
44
45 /**
46  * This class contains locale data for English.
47  */
48 public class LocaleInformation_en extends ListResourceBundle
49 {
50
51   /*
52    * This area is used for defining object values
53    */
54
55   /**
56    * This is the set of collation rules used by java.text.RuleBasedCollator 
57    * to sort strings properly.  See the documentation of that class for the 
58    * proper format.
59    */
60   // FIXME: this is nowhere near complete.
61   // In particular we must mark accents as ignorable,
62   // and probably other things as well.
63   private static final String collation_rules = 
64   "<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" +
65   "<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";
66
67   /**
68    * This is the list of months, fully spelled out
69    */
70   private static final String[] months =
71   {
72     "January", "February", "March", "April", "May", "June",
73     "July", "August", "September", "October", "November", "December", null
74   };
75
76   /**
77    * This is the list of abbreviated month names
78    */
79   private static final String[] shortMonths =
80   {
81     "Jan", "Feb", "Mar", "Apr", "May", "Jun",
82     "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", null
83   };
84
85   /**
86    * This is the list of weekdays, fully spelled out
87    */
88   private static final String[] weekdays =
89   {
90     null, "Sunday", "Monday", "Tuesday", "Wednesday",
91     "Thursday", "Friday", "Saturday"
92   };
93
94   /**
95    * This is the list of abbreviated weekdays
96    */
97   private static final String[] shortWeekdays =
98   {
99     null, "Sun", "Mon", "Tue", "Wed",
100     "Thu", "Fri", "Sat"
101   };
102
103   /**
104    * This is the list of AM/PM strings
105    */
106   private static final String[] ampms = { "AM", "PM" };
107
108   /**
109    * This is the list of era identifiers
110    */
111   private static final String[] eras = { "BC", "AD" };
112
113   private static final String[][] zoneStrings =
114   {
115     { "GMT", "Greenwich Mean Time", "GMT",
116       /**/   "Greenwich Mean Time", "GMT", "GMT" },
117     { "PST", "Pacific Standard Time", "PST",
118       /**/   "Pacific Daylight Time", "PDT", "San Francisco" },
119     { "MST", "Mountain Standard Time", "MST",
120       /**/   "Mountain Daylight Time", "MDT", "Denver" },
121     { "PNT", "Mountain Standard Time", "MST",
122       /**/   "Mountain Standard Time", "MST", "Phoenix" },
123     { "CST", "Central Standard Time", "CST",
124       /**/   "Central Daylight Time", "CDT", "Chicago" },
125     { "EST", "Eastern Standard Time", "EST",
126       /**/   "Eastern Daylight Time", "EDT", "Boston" },
127     { "IET", "Eastern Standard Time", "EST",
128       /**/   "Eastern Standard Time", "EST", "Indianapolis" },
129     { "PRT", "Atlantic Standard Time", "AST",
130       /**/   "Atlantic Daylight Time", "ADT", "Halifax" },
131     { "CNT", "Newfoundland Standard Time", "NST",
132       /**/   "Newfoundland Daylight Time", "NDT", "St. Johns" },
133     { "ECT", "Central European Standard Time", "CET",
134       /**/   "Central European Daylight Time", "CEST", "Paris" },
135     { "CTT", "China Standard Time", "CST",
136       /**/   "China Standard Time", "CST", "Shanghai" },
137     { "JST", "Japan Standard Time", "JST",
138       /**/   "Japan Standard Time", "JST", "Tokyo" },
139     { "HST", "Hawaii Standard Time", "HST",
140       /**/   "Hawaii Standard Time", "HST", "Honolulu" },
141     { "AST", "Alaska Standard Time", "AKST",
142       /**/   "Alaska Daylight Time", "AKDT", "Anchorage" }
143   };
144
145   /*************************************************************************/
146
147   /**
148    * This is the object array used to hold the keys and values
149    * for this bundle
150    */
151
152   private static final Object[][] contents =
153   {
154     // For RuleBasedCollator
155     { "collation_rules", collation_rules },
156
157     // For SimpleDateFormat/DateFormatSymbols
158     { "months", months },
159     { "shortMonths", shortMonths },
160     { "weekdays", weekdays },
161     { "shortWeekdays", shortWeekdays },
162     { "ampms", ampms },
163     { "eras", eras },
164     { "localPatternChars", "GyMdkHmsSEDFwWahKz" },
165     { "zoneStrings", zoneStrings },
166
167     { "shortDateFormat", "M/d/yy" },         // Java's Y2K bug.
168     { "mediumDateFormat", "d-MMM-yy" },
169     { "longDateFormat", "MMMM d, yyyy" },
170     { "fullDateFormat", "EEEE MMMM d, yyyy G" },
171     { "defaultDateFormat", "d-MMMM-yy" },
172     { "shortTimeFormat", "h:mm a" },
173     { "mediumTimeFormat", "h:mm:ss a" },
174     { "longTimeFormat", "h:mm:ss a z" },
175     { "fullTimeFormat", "h:mm:ss;S 'o''clock' a z" },
176     { "defaultTimeFormat", "h:mm:ss a" },
177
178     // For DecimalFormat/DecimalFormatSymbols
179     { "decimalSeparator", "." },
180     { "digit", "#" },
181     { "exponential", "E" },
182     { "groupingSeparator", "," },
183     { "infinity", "\u221e" },
184     { "NaN", "\ufffd" },
185     { "minusSign", "-" },
186     { "monetarySeparator", "." },
187     { "patternSeparator", ";" },
188     { "percent", "%" },
189     { "perMill", "\u2030" },
190     { "zeroDigit", "0" },
191
192     // For NumberFormat.
193     { "numberFormat", "#,##0.###" },
194     { "percentFormat", "#,##0%" },
195   };
196
197   /*************************************************************************/
198
199   /**
200    * This method returns the object array of key, value pairs containing
201    * the data for this bundle.
202    *
203    * @return The key, value information.
204    */
205   public Object[][] getContents ()
206   {
207     return contents;
208   }
209 }