javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-158

dukesbookstore: Error in Messages_de.properties CartItemCount value

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0.8
    • Fix Version/s: 7.0.1
    • Component/s: examples
    • Labels:
      None

      Description

      Messages_de.properties contains the following line:

      CartItemCount=Ihr Einkaufswagen enthält {0,choice,0#Ihr Einkaufswagen enthält keine Artikel|1#Ihr Einkaufswagen enthält einen Artikel|1< Ihr Einkaufswagen enthält

      {0} Artikel}.

      Output for a cart with exactly one element: "Ihr Einkaufswagen enthält Ihr Einkaufswagen enthält einen Artikel."

      Proposed correction:

      CartItemCount=Ihr Einkaufswagen enthält {0,choice,0#keine Artikel|1#einen Artikel|1<{0}

      Artikel}.

      Output for a cart with exactly one element: "Ihr Einkaufswagen enthält einen Artikel." (Correct also for 0 or 1< elements in cart).

      p.s. I speak, read and write German perfectly (but I believe the correctness of my proposal can be deduced merely from understanding the Java MessageFormat syntax).

        Activity

        Hide
        Kim Haase added a comment -

        Thanks very much for catching this. If you find any more errors in those messages, please let us know.

        Committed to EE 6 branch at revision 1182.

        Committed to trunk at revision 1183.

        Show
        Kim Haase added a comment - Thanks very much for catching this. If you find any more errors in those messages, please let us know. Committed to EE 6 branch at revision 1182. Committed to trunk at revision 1183.

          People

          • Assignee:
            Kim Haase
            Reporter:
            swiss-chris
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 5 minutes
              5m
              Remaining:
              Remaining Estimate - 5 minutes
              5m
              Logged:
              Time Spent - Not Specified
              Not Specified