home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Main.bin / LocaleData.java < prev    next >
Text File  |  1998-09-22  |  6KB  |  147 lines

  1. /*
  2.  * @(#)$RCSfile: LocaleData.java,v $ $Revision: 1.1.1.1 $ $Date: 1998/09/22 16:49:04 $
  3.  *
  4.  * (C) Copyright Taligent, Inc. 1996 - All Rights Reserved
  5.  * (C) Copyright IBM Corp. 1996 - All Rights Reserved
  6.  *
  7.  * Portions copyright (c) 1996 Sun Microsystems, Inc. All Rights Reserved.
  8.  *
  9.  *   The original version of this source code and documentation is copyrighted
  10.  * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
  11.  * materials are provided under terms of a License Agreement between Taligent
  12.  * and Sun. This technology is protected by multiple US and International
  13.  * patents. This notice and attribution to Taligent may not be removed.
  14.  *   Taligent is a registered trademark of Taligent, Inc.
  15.  *
  16.  * Permission to use, copy, modify, and distribute this software
  17.  * and its documentation for NON-COMMERCIAL purposes and without
  18.  * fee is hereby granted provided that this copyright notice
  19.  * appears in all copies. Please refer to the file "copyright.html"
  20.  * for further important copyright and licensing information.
  21.  *
  22.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
  23.  * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
  24.  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  25.  * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
  26.  * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
  27.  * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  28.  *
  29.  */
  30.  
  31. package java.text.resources;
  32.  
  33. import java.util.Locale;
  34.  
  35. /**
  36.  * This class used to be the base class for all of the LocaleElements classes.  This has
  37.  * been changed so that all of the LocaleElements classes descend from ListResourceBundle.
  38.  * This class now exists only to allow a way to get the list of available resources.  Even
  39.  * this will be changing in the future.
  40.  *
  41.  * @author Asmus Freytag
  42.  * @author Mark Davis
  43.  * @version $Revision: 1.1.1.1 $ 07/14/98
  44.  */
  45.  
  46. public class LocaleData {
  47.     // use to get the list of locales that have this data
  48.     public static Locale[] getAvailableLocales(String key)
  49.     {
  50.         return localeList;  // hard-coded for now
  51.     }
  52.  
  53.     // ========== privates ==========
  54.  
  55.     // for now, we hard-code the enumeration
  56.     private static Locale[] localeList = {
  57.         new Locale("ar", "EG", ""),
  58.         new Locale("be", "BY", ""),
  59.         new Locale("bg", "BG", ""),
  60.         new Locale("ca", "ES", ""),
  61.         new Locale("cs", "CZ", ""),
  62.         new Locale("da", "DK", ""),
  63.         new Locale("de", "DE", ""),
  64.         new Locale("de", "DE", "EURO"),
  65.         new Locale("de", "AT", ""),
  66.         new Locale("de", "AT", "EURO"),
  67.         new Locale("de", "CH", ""),
  68.         new Locale("de", "LU", ""),
  69.         new Locale("de", "LU", "EURO"),
  70.         new Locale("el", "GR", ""),
  71.         new Locale("en", "US", ""),
  72.         new Locale("en", "AU", ""),
  73.         new Locale("en", "CA", ""),
  74.         new Locale("en", "GB", ""),
  75.         new Locale("en", "IE", ""),
  76.         new Locale("en", "IE", "EURO"),
  77.         new Locale("en", "NZ", ""),
  78.         new Locale("en", "ZA", ""),
  79.         new Locale("es", "ES", ""),
  80.         new Locale("es", "ES", "EURO"),
  81.         new Locale("es", "AR", ""),
  82.         new Locale("es", "BO", ""),
  83.         new Locale("es", "CL", ""),
  84.         new Locale("es", "CO", ""),
  85.         new Locale("es", "CR", ""),
  86.         new Locale("es", "DO", ""),
  87.         new Locale("es", "EC", ""),
  88.         new Locale("es", "GT", ""),
  89.         new Locale("es", "HN", ""),
  90.         new Locale("es", "MX", ""),
  91.         new Locale("es", "NI", ""),
  92.         new Locale("es", "PA", ""),
  93.         new Locale("es", "PY", ""),
  94.         new Locale("es", "PE", ""),
  95.         new Locale("es", "PR", ""),
  96.         new Locale("es", "SV", ""),
  97.         new Locale("es", "UY", ""),
  98.         new Locale("es", "VE", ""),
  99.         new Locale("et", "EE", ""),
  100.         new Locale("fi", "FI", ""),
  101.         new Locale("fi", "FI", "EURO"),
  102.         new Locale("fr", "FR", ""),
  103.         new Locale("fr", "FR", "EURO"),
  104.         new Locale("fr", "BE", ""),
  105.         new Locale("fr", "BE", "EURO"),
  106.         new Locale("fr", "CA", ""),
  107.         new Locale("fr", "CH", ""),
  108.         new Locale("fr", "LU", ""),
  109.         new Locale("fr", "LU", "EURO"),
  110.         new Locale("hr", "HR", ""),
  111.         new Locale("hu", "HU", ""),
  112.         new Locale("is", "IS", ""),
  113.         new Locale("it", "IT", ""),
  114.         new Locale("it", "IT", "EURO"),
  115.         new Locale("it", "CH", ""),
  116.         new Locale("iw", "IL", ""),
  117.         new Locale("ja", "JP", ""),
  118.         new Locale("ko", "KR", ""),
  119.         new Locale("lt", "LT", ""),
  120.         new Locale("lv", "LV", ""),
  121.         new Locale("mk", "MK", ""),
  122.         new Locale("nl", "NL", ""),
  123.         new Locale("nl", "NL", "EURO"),
  124.         new Locale("nl", "BE", ""),
  125.         new Locale("nl", "BE", "EURO"),
  126.         new Locale("no", "NO", "B"),
  127.         new Locale("no", "NO", "NY"),
  128.         new Locale("pl", "PL", ""),
  129.         new Locale("pt", "PT", ""),
  130.         new Locale("pt", "PT", "EURO"),
  131.         new Locale("pt", "BR", ""),
  132.         new Locale("ro", "RO", ""),
  133.         new Locale("ru", "RU", ""),
  134.         new Locale("sh", "YU", ""),
  135.         new Locale("sk", "SK", ""),
  136.         new Locale("sl", "SI", ""),
  137.         new Locale("sq", "AL", ""),
  138.         new Locale("sr", "YU", ""),
  139.         new Locale("sv", "SE", ""),
  140.         new Locale("th", "TH", ""),
  141.         new Locale("tr", "TR", ""),
  142.         new Locale("uk", "UA", ""),
  143.         new Locale("zh", "CN", ""),
  144.         new Locale("zh", "TW", "")
  145.     };
  146. }
  147.