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

[filechooser] tooltip for desktop button is in English on non-English windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 6u10
    • Fix Version/s: None
    • Component/s: client-libs

      Description

      When open standard file chooser, all the tooltips of the buttons are in English, except one.

      The tooltip of the home directory button is in English as "Desktop" on windows, when the home directory is the root.

      There is no message in the resource file corresponding to it.

      In the file /src/share/classes/com/sun/java/swing/plaf/windows/WindowsFileChooserUI.java, there is code section

      if (OS_VERSION.startsWith("4.1")) { // Windows 98 (4.10)
      // Desktop Button
      File homeDir = fsv.getHomeDirectory();
      String toolTipText = homeFolderToolTipText;
      if (fsv.isRoot(homeDir)) {
      toolTipText = getFileView(fc).getName(homeDir); // Probably "Desktop".
      }
        .................

      The tooltip is "Desktop", which makes user feel strange on non-English windows, because all the other buttons have localized tooltips.

      Attached is the snapshot.
      The snapshot can not be attached.

      Please see it at http://java-g11n.sfbay.sun.com/j2se/6u10/tooltip.png
      The snapshot is attached.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rupashka Pavel Porvatov (Inactive)
              Reporter:
              yhuang Yong Huang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: