Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5175

Ability to translate validation error messages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 6.2.1
    • Fix Version/s: 6.2.3
    • Component/s: None

      Description

      Currently validation error messages are returned directly from the error source, it is not possible to translate them.

      As customers want to translate the user interface, they also want these error messages to be translated.

      Here is the original request from the Suggestion Box ticket: 

      • Using TextField and the "type" property (e.g. Long)
        • - name: navSortOrder
        • class: info.magnolia.ui.form.field.definition.TextFieldDefinition
        • type: Long
      • Editor enters some invalid data like "aaa"
      • Error message "Could not convert value to Long" is shown
      • This error message cannot be translated

      There should be a way to change this error message.

        1. Dev note

      ConfiguredFieldValidatorDefinition - needs to be marked i18nable. Key should not be hardcoded. 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ajuran Antonín Juran
              Reporter:
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 2d 3h 44m
                  2d 3h 44m