-
Bug
-
Resolution: Fixed
-
P1
-
2.0, 1.1.4, 1.1.5
-
1.1.6
-
x86
-
generic, windows_95, windows_nt
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2016987 | 1.2.0 | Shanmugam Senthil | P1 | Resolved | Fixed | 1.2beta4 |
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 - ###@###.###
======================================================================
- backported by
-
JDK-2016987 NLS: JAVA NORWEGIAN AND SPANISH REGIONAL SETTINGS ARE MIS-DETECTED AS ENGLISH
- Resolved
- duplicates
-
JDK-4093907 running jdk in spanish traditional or modern regional variance comes up in EN
- Closed