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

Broken Localization Strings (XMLSchemaMessages_de.properties)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • globalization
    • None



      Many of the localization strings in XMLSchemaMessages_de.properties are broken.

      Example:
      English: cvc-elt.5.2.2.2.2 = cvc-elt.5.2.2.2.2: The value ''
      {1}'' of element ''{0}'' does not match the '{'value constraint'}' value ''{2}''.
      German: cvc-elt.5.2.2.2.2 = cvc-elt.5.2.2.2.2: Wert "{1}

      " des Elements "
      {0}" stimmt nicht mit dem "{''value constraint''}"-Wert "{2}" \u00FCberein.

      The problem is the '{'value constraint'}', which properly escaped the {-Char, while the German version has a double-quote ("), which doesn't escape the {, so it's interpreted as if the string has an additional parameter named ''value constraint''.

      This leads to the problem that the "raw" error-messages (without replaced values) get prefixed by the "FormatFailed" string (e.g. "Beim Formatieren der folgenden Meldung ist ein interner Fehler aufgetreten: Wert "{1}" des Elements "{0}

      " stimmt nicht mit dem "
      {''value constraint''}

      "-Wert "
      {2}

      " überein." by the java.text.MessageFormat.format(msg, arguments) call.

            ljiang Leo Jiang (Inactive)
            joehw Joe Wang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: