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

Control Panel need labels for accerlerator keys - Asian locales

XMLWordPrintable

    • mantis
    • generic
    • generic
    • Verified

      When running Control Panel in English or European locales, the accelerator keys are represented with an underline character. In Asian locales, we normally add the letter representing the accelerator key at the end of the label, wrapped with parenthesis. Ex:

      ControlPanel_zh_TW.java
      { "panel.help_close", "\u95dc\u9589" },
      { "panel.help_close.acceleratorKey", new Integer(KeyEvent.VK_C)},

      should be changed to:

              { "panel.help_close", "\u95dc\u9589 (C)" },
              { "panel.help_close.acceleratorKey", new Integer(KeyEvent.VK_C)},

      This should be done for all accelerator keys:
              { "panel.apply", "Apply" },
              { "panel.apply.acceleratorKey", new Integer(KeyEvent.VK_A)},
              { "panel.cancel", "Reset" },
              { "panel.cancel.acceleratorKey", new Integer(KeyEvent.VK_R)},
              { "panel.help", "Help" },
              { "panel.help.acceleratorKey", new Integer(KeyEvent.VK_H)},
              { "panel.help_close", "Close" },
              { "panel.help_close.acceleratorKey", new Integer(KeyEvent.VK_C)},
              { "cert.remove_button", "Remove" },
              { "cert.remove_button.acceleratorKey", new Integer(KeyEvent.VK_M)},
              { "cert.import_button", "Import" },
              { "cert.import_button.acceleratorKey", new Integer(KeyEvent.VK_I)},
              { "cert.export_button", "Export" },
              { "cert.export_button.acceleratorKey", new Integer(KeyEvent.VK_E)},
              { "cert.details_button", "Details" },
              { "cert.details_button.acceleratorKey", new Integer(KeyEvent.VK_D)},
              { "cert.viewcert_button", "View Certificate" },
              { "cert.viewcert_button.acceleratorKey", new Integer(KeyEvent.VK_V)},
              { "jarcache.clear", "Clear" },
              { "jarcache.clear.acceleratorKey", new Integer(KeyEvent.VK_C)},
              { "jarcache.view", "View" },
              { "jarcache.view.acceleratorKey", new Integer(KeyEvent.VK_V) },

            mfang Michael Fang (Inactive)
            mfang Michael Fang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: