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

message resources in Deployment.java should include variable(s) in itself

XMLWordPrintable

    • b43
    • generic
    • generic

      This is one of this issue...

      In Deployment.java, there is the following resource.

        { "roothttpscertstore.cert.added", "Added certificate in SSL Root CA certificate store as alias " },

      In SSLRootCertStore.java, it's using the resource as below.

        Trace.msgSecurityPrintln("roothttpscertstore.cert.added", new Object[]{alias});

      Actual message text should be:

        "Added certificate in SSL Root CA certificate store as alias <alias>"

      Translators look at only the text in the resource files and
      attempt to translate the message text, so an actual translated
      message will become the strange thing to which the string of
      parameter(s) like "<alias>" is attached at the end of the message
      unnaturally.

      The message which has parameter(s) as a part of the message
      should include variable(s) '{n}' in the message itself like below.

        { "roothttpscertstore.cert.added", "Added certificate in SSL Root CA certificate store as alias {0}" },

      In the result, translators will be able to translate it naturally.

            ngthomas Thomas Ng (Inactive)
            kurosaki Kenichi Kurosaki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: