Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-967

Error building i18n values when string contains "\:"

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.Beta1, 3.2.3.Final
    • Fix Version/s: 4.0.0.Beta2, 3.2.4.Final
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Run errai-tutorial in this repo: https://github.com/cristianonicolai/errai-tutorial/tree/repro
      Or basically having a translation value that contains the string "\:"

      Show
      Run errai-tutorial in this repo: https://github.com/cristianonicolai/errai-tutorial/tree/repro Or basically having a translation value that contains the string "\:"

      Description

      When using the I18n service, if a translation value contains the string "\:" when Errai resolves the value, it ends up concatenating additional keys into it.

      Exemple properties file:
      app.nickname=Test31!\:
      app.welcome1=welcome1
      app.welcome2=welcome2
      app.welcome3=welcome3

      Expected translation: "Test31!:" - which is result form using a standard Java properties.load.
      Actual result: "Test31!:app.welcome1=welcome1"

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mbarkley Max Barkley
                Reporter:
                cristiano.nicolai Cristiano Nicolai
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: