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

NLS: Please change the mnemonic assignment system to avoid translation issue (Swing files)

XMLWordPrintable

    • b34
    • generic
    • generic

        WPTG (translation team) translatability (t13y) requirement:

        When designing GUI that includes mnemonics, please define the text label and
        mnemonic character in one resource, with the mnemonic character preceded by
        ampersand (&).

        DO THIS

        English :

        MENU_TEXT_AND_MNEMONIC=&File

        Japanese :

        MENU_TEXT_AND_MNEMONIC=ファイル(&F)


        DO NOT DO THIS

        English :

        MENU_TEXT=File
        MENU_MNEMONIC=F

        Japanese :

        MENU_TEXT=ファイル(F)
        MENU_MNEMONIC=F


        The issue has been identified on the following Swing files:
        jdk/src/share/classes/com/sun/java/swing/plaf/gtk/resources/gtk.properties
        jdk/src/share/classes/com/sun/swing/internal/plaf/basic/resources/basic.properties
        jdk/src/closed/share/demo/jfc/SwingSet2/resources/swingset.properties
        This issue also impacts:
        jdk/src/share/classes/com/sun/swing/internal/plaf/metal/resources/metal.properties

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: