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

SwingSet2 demo's translated property files broken

    Details

    • Subcomponent:
    • Resolved In Build:
      b13
    • CPU:
      generic
    • OS:
      windows
    • Verification:
      Verified

      Description

      SYNOPSIS
      --------
      SwingSet2 demo's translated property files broken

      OPERATING SYSTEM
      ----------------
      Japanese Windows XP SP3

      FULL JDK VERSION
      ----------------
      Java 7 (~b138 onwards)

      PROBLEM DESCRIPTION from LICENSEE
      ---------------------------------
      SwingSet2 demo's translated property files (swingset2_ja.properties and swingset_zh_CN.properties) and broken. There are two problems:

      1. Unexpected "~" characters
      2. HTML text is truncated

      REPRODUCTION INSTRUCTIONS
      -------------------------
      Note that these instructions highlight the problems in the Japanese property file (swingset2_ja.properties), but the Chinese property file (swingset_zh_CN.properties) seems to have similar issues.

      PROBLEM 1
      ---------
      1. On Japanese Windows XP, run ListDemo on SwingSet2.jar from Command Prompt
         > jre\bin\java -cp demo\jfc\SwingSet2\SwingSet2.jar ListDemo

      2. Check translated strings on top, you may see two extra "~" characters

      3. Move focus to Command Prompt and press Ctrl+C

      4. On Japanese Windows XP, run OptionPaneDemo on SwingSet2.jar from Command Prompt
         > jre\bin\java -cp demo\jfc\SwingSet2\SwingSet2.jar OptionPaneDemo

      5. Press "Show Warning Dialog" button (2nd one)

      6. Check translated strings, you may see two extra "~" characters

      7. Move focus to Command Prompt and press Ctrl+C

      PROBLEM 2
      ---------
      1. On Japanese Windows XP, run ToolTipDemo on SwingSet2.jar from Command Prompt
         > jre\bin\java -Duser.language=en -cp demo\jfc\SwingSet2\SwingSet2.jar ToolTipDemo

      2. Move mouse cursor on cow's body, you may see "In case you thought that ..."

      3. Move focus to Command Prompt and press Ctrl+C to stop ToolTipDemo

      4. On Japanese Windows XP, run ToolTipDemo on SwingSet2.jar from Command Prompt
         > jre\bin\java -cp demo\jfc\SwingSet2\SwingSet2.jar ToolTipDemo

      5. Move mouse cursor on cow's body, you may see truncated translation

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mfang Michael Fang (Inactive)
                Reporter:
                dkorbel David Korbel (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: