Uploaded image for project: 'mod-circulation'
  1. mod-circulation
  2. CIRC-1146

Internationalize back-end failure messages

    XMLWordPrintable

    Details

    • Type: Story
    • Status: In progress (View Workflow)
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Template:
      Standard Bug Write-Up Format
    • Development Team:
      Core: Platform
    • Affected Institution:
      GBV

      Description

      Overview: English error messages when lang parameter is non-English in some 4xx responses.

      Steps to Reproduce:

      1. Switch to German locale
      2. Request an item that the requester currently has on loan.

      Expected Results: German error message.
      Actual Results: English error message:

      {
        "errors" : [ {
          "message" : "This requester currently has this item on loan.",
          "parameters" : [ {
            "key" : "itemId",
            "value" : "7212ba6a-8dcf-45a1-be9a-ffaa847c4423"
          }, {
            "key" : "userId",
            "value" : "b4cee18d-f862-4ef1-95a5-879fdd619603"
          }, {
            "key" : "loanId",
            "value" : "38c377d0-842f-4c59-952f-b56635445cd5"
          } ]
        } ]
      }

      Additional information:

      The language file with English string and the language files with translated strings should use the same directory structure and JSON format as the front-end modules have so that the existing scripts of the FOLIO localization workflow with https://lokalise.com/ can be re-used.

      translations/mod-circulation/
        ar.json
        ca.json
        da.json
        de.json 
        en.json
        en_GB.json
        en_SE.json 
        en_US.json 
        es_419.json
        fr_FR.json
        ...

      Implementation note:

      The standard ICU Java libary is https://unicode-org.github.io/icu-docs/apidoc/released/icu4j/

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                julianladisch Julian Ladisch
                Reporter:
                zburke Zak_Burke
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    TestRail: Runs

                      TestRail: Cases