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

NLS: security/util/Resources.java cannot be processed by translation team

    Details

    • Subcomponent:
    • Resolved In Build:
      b120
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        Currently Oracle Translation Factory can not support jdk/src/share/classes/sun/security/util/Resources.java because of two problems in the file.

        1. There are few messages with message ids longer than 255 characters.

        For example:
        ------------------------------------------
        {"Warning: File name may include escaped backslash characters. " +
            "It is not necessary to escape backslash characters " +
            "(the tool escapes characters as necessary when writing " +
            "the policy contents to the persistent store).\n\n" +
            "Click on Retain to retain the entered name, or click on " +
            "Edit to edit the name.",
        "Warning: File name may include escaped backslash characters. " +
            "It is not necessary to escape backslash characters " +
            "(the tool escapes characters as necessary when writing " +
            "the policy contents to the persistent store).\n\n" +
            "Click on Retain to retain the entered name, or click on " +
            "Edit to edit the name."}
        ------------------------------------------

            The message id will be converted to segment ID (SID) and
        Oracle translation factory does not support SIDs longer than
        255 characters. The solution is to modify the message key:

        ------------------------------------------
        {"warning.filename.backslash",
        "Warning: File name may include escaped backslash characters. " +
            "It is not necessary to escape backslash characters " +
            "(the tool escapes characters as necessary when writing " +
            "the policy contents to the persistent store).\n\n" +
            "Click on Retain to retain the entered name, or click on " +
            "Edit to edit the name."}

        2. There are other messages where source English text is used in the message id like:

        ------------------------------------------
        {"Keystore file exists, but is empty: ",
                 "Keystore file exists, but is empty: "},
        ------------------------------------------

             Please change the ids to real message keys:

        ------------------------------------------
        {"keystore.file.empty",
                 "Keystore file exists, but is empty: "},

          Activity

          Hide
          weijun Weijun Wang added a comment -
          BT2:EVALUATION

          We need to make changes in 2 places: the Resources.java file, and the codes reference the keys. Globalization team will take care of other Resources_xx.java files.

          There are also
          ./tools/JarSignerResources.java
          ./util/AuthResources.java
          Show
          weijun Weijun Wang added a comment - BT2:EVALUATION We need to make changes in 2 places: the Resources.java file, and the codes reference the keys. Globalization team will take care of other Resources_xx.java files. There are also ./tools/JarSignerResources.java ./util/AuthResources.java
          Show
          weijun Weijun Wang added a comment - BT2:EVALUATION http://hg.openjdk.java.net/jdk7/tl/jdk/rev/4565d120e514
          Show
          jprtbugupd JPRT Bug Updates (Inactive) added a comment - BT2:EVALUATION http://hg.openjdk.java.net/jdk7/build/jdk/rev/4565d120e514

            People

            • Assignee:
              weijun Weijun Wang
              Reporter:
              yhuang Yong Huang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: