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

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

XMLWordPrintable

    • b120
    • generic
    • generic
    • Verified

        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: "},

              weijun Weijun Wang
              yhuang Yong Huang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: