Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6250793

Not all Time Zone descriptions are translated in all Locale Languages

XMLWordPrintable

      OPERATING SYSTEM(S)
      JDK VERSION(S): All (1.3.1, 1.4.2, 5.0)
      DESCRIPTION:
      Not all timezones are translated, this seems to be a limitation with in the JDK. If the translation is not found then the English version is used.
      Here is the java class to test this problem:
      import java.util.*;
      public class TimeZoneDisplayName {
          public static void main(String[] args)
          {
              String[] available = TimeZone.getAvailableIDs();
              TimeZone ivTz;
              for ( int i = 0; i < available.length; i++ )
              {
                  ivTz = TimeZone.getTimeZone(available[i]);
                  System.out.println(ivTz.getDisplayName(Locale.getDefault()));
              }
          }
      }
      If the description of all TimeZones available in the
      French/Italy/etc language are printed, having changed the regional setting of the machine to the corresponding locale, not all descriptions are translated in French/Italy/etc.
      ###@###.### 2005-04-05 16:48:22 GMT

            mfang Michael Fang (Inactive)
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: