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

NLS: JAVA NORWEGIAN AND SPANISH REGIONAL SETTINGS ARE MIS-DETECTED AS ENGLISH

XMLWordPrintable

    • 1.1.6
    • x86
    • generic, windows_95, windows_nt
    • Verified



        Name: diC59631 Date: 09/18/97


        We are licensee (Oracle Corp.)
        Oracle bug #550562
        High Priority - Would like fix in 1.1.5.

        D2K R1.6 Webforms testing revealed that some localized Java class files that
        depended on Regional Settings (i.e., RunformBundle) would display English
        instead of messages of the language in which they were localized. Two language
        class files that Oracle supports, Norwegian and Spanish, displayed English
        messages instead of the repesctive Norwegian and Spanish messages.
        The following Java file can be compiled and run to easily show the problem:
        import java.applet.Applet;
        import java.awt.Graphics;
        import java.util.Locale;
        public class JavaLocTester extends Applet
        {
          public void paint(Graphics g)
          {
            Locale myLocale = Locale.getDefault();
            g.drawString("Language: "+ myLocale.getLanguage(), 50, 20);
            g.drawString("Country: "+ myLocale.getCountry(), 50, 40);
            g.drawString("Variant: "+ myLocale.getVariant(), 50, 60);
            g.drawString("toString: "+ myLocale.toString(), 50, 80);
          }
        }
        It appears that Locale.getDefault procedure detect _en instead of _no_NO_BK for
        Norwegian(Bokmal) Regional Settings, _en instead of no_NO_NY for Norwegian(
        Nynorsk) Regional Settings. In a similar manner the Java English language
        abbreviation (_en) is also detected for Spanish(Traditional Sort), and Spanish(
        Modern Sort). Other language affected (though not localized yet in D2K) are
        Afrikaans, Basque, Belarusian, Faeroese, Indonesian, Korean(Johab), Serbian,
        and Ukranian.
        Alternatively, this same problem can be seen by setting Regional Settings to
        the affected Norwegian or Spanish languages and generating a Webforms
        RunformBundle error message.

        company - Oracle Corp. , email - ###@###.###
        ======================================================================

              ssenthilsunw Shanmugam Senthil (Inactive)
              dindrigo Daniel Indrigo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: