-
Bug
-
Resolution: Not an Issue
-
P3
-
7u4
-
os_x
FULL PRODUCT VERSION :
java version " 1.7.0_40-ea "
Java(TM) SE Runtime Environment (build 1.7.0_40-ea-b28)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b47, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Mac OS X 10.7.5
A DESCRIPTION OF THE PROBLEM :
The 3 buttons " New Folder " , " Cancel " and " Open " / " Save " displayed in a FileDialog instance are not localized according to the set locale.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the test case attached to this report.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expected the buttons would display the texts " Nouveau dossier " , " Annuler " and " Ouvrir " .
ACTUAL -
The buttons displayed the texts " New Folder " , " Cancel " and " Open " .
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import java.util.Locale;
public class FileDialogTest {
public static void main(String [] args) {
Locale.setDefault(Locale.FRENCH);
new FileDialog(new Frame()).setVisible(true);
System.exit(0);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
None.
Note that only files selected with the FileDialog class can be opened in a sandboxed program, so in that environment, it can't even be replaced by a JFileChooser instance (that is less less usable under Mac OS X anyway).
java version " 1.7.0_40-ea "
Java(TM) SE Runtime Environment (build 1.7.0_40-ea-b28)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b47, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Mac OS X 10.7.5
A DESCRIPTION OF THE PROBLEM :
The 3 buttons " New Folder " , " Cancel " and " Open " / " Save " displayed in a FileDialog instance are not localized according to the set locale.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the test case attached to this report.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I expected the buttons would display the texts " Nouveau dossier " , " Annuler " and " Ouvrir " .
ACTUAL -
The buttons displayed the texts " New Folder " , " Cancel " and " Open " .
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import java.util.Locale;
public class FileDialogTest {
public static void main(String [] args) {
Locale.setDefault(Locale.FRENCH);
new FileDialog(new Frame()).setVisible(true);
System.exit(0);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
None.
Note that only files selected with the FileDialog class can be opened in a sandboxed program, so in that environment, it can't even be replaced by a JFileChooser instance (that is less less usable under Mac OS X anyway).
- duplicates
-
JDK-8033134 Text labels are not localized on SWT dialog buttons with jdk7.
-
- Closed
-
-
JDK-8024279 Mac OS X: should CocoaUI elements (such as Dialog Chooser) use localized messages?
-
- Closed
-
- relates to
-
JDK-7131356 (props) "No Java runtime present, requesting install" when creating VM from JNI [macosx]
-
- Resolved
-