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

Plug-in messages with single quote - Bad display

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic, x86
    • OS:
      generic, solaris_8, windows_nt

      Description



      Name: gm110360 Date: 06/24/2002


      FULL PRODUCT VERSION :
      Plug-in Java(TM): Version 1.4.0
      Utilisation de la version JRE 1.4.0 Java HotSpot(TM) Client VM

      FULL OPERATING SYSTEM VERSION :
      NT 4.0 SP6

      ADDITIONAL OPERATING SYSTEMS :
      IExplorer V6



      A DESCRIPTION OF THE PROBLEM :
      Many french messages content sentences with single quote.

      These messages are displayed without single quote ('), and
      often with unsubstituted "{0}" or "{1}" patterns.

      Plugin uses java.text.MessageFormat.format() mecanism to
      display messages.

      And these ressource messages do'nt respected the documented
      MessageFormat rules:
        Within a String, "''" represents a single quote.
        A QuotedString can contain arbitrary characters except
      single quotes; the surrounding single quotes are removed.

      Occurs in folowing versions: 1.4.0, 1.4.0_01, 1.4.1_beta

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.Use "-Duser.language=fr" parameter in Java plugin
      configuration panel.

      2.Display message with single quote (inconsistent
      Certificate, new installation or update of extension, ...)


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      1) Display single quote (') in messages.

      2) Substitute "{0}", "{1}" variables in these "single quote
      messages".

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Bad message without {0} substitution,
      No error

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      *** No Source code ***

      Several messages content single quote and {0} variables in
      sun.plugin.resources.Activator_fr.class resource file.

      Example with "https_dialog.text" entry:

       French text entry is:
         ......
         Nom d'hôte de l'URL : {0}
         Nom d'hôte du certificat : {1}

       This message is displayed like this:
         ......
         Nom dhôte de lURL : ybs.myCompany.fr
         Nom dhôte du certificat : {1}

      3 Remarks:
      - Quotes are removed
      - "{0}" is substituted (->Two single quote exist in the sentence)
      - "{1}" is displayed (->Only one single quote)


       For information, english message would be:
         ....
         Host name of the URL: ybs.myCompany.fr
         Host name from the certificate: john.myCompany.fr

      ---------- END SOURCE ----------

      CUSTOMER WORKAROUND :
      Use english version ( "-Duser.language=fr" parameter )
      (Review ID: 158350)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              duke J. Duke (Inactive)
              Reporter:
              gmanwanisunw Girish Manwani (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: