8182402: Tooltip for Desktop button is in English when non-English locale is set
Reviewed-by: azvegint
--- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java Thu Jun 29 13:07:19 2017 -0700
+++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java Fri Jun 30 11:03:44 2017 +0530
@@ -281,11 +281,6 @@
// Home Button
File homeDir = fsv.getHomeDirectory();
String toolTipText = homeFolderToolTipText;
- if (fsv.isRoot(homeDir)) {
- toolTipText = getFileView(fc).getName(homeDir); // Probably "Desktop".
- }
-
-
JButton b = new JButton(homeFolderIcon);
--- a/jdk/src/java.desktop/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java Thu Jun 29 13:07:19 2017 -0700
+++ b/jdk/src/java.desktop/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java Fri Jun 30 11:03:44 2017 +0530
@@ -260,9 +260,6 @@
// Home Button
File homeDir = fsv.getHomeDirectory();
String toolTipText = homeFolderToolTipText;
- if (fsv.isRoot(homeDir)) {
- toolTipText = getFileView(fc).getName(homeDir); // Probably "Desktop".
- }
JButton b = new JButton(homeFolderIcon);
b.setToolTipText(toolTipText);