Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5292

Add localization for Form file upload errors

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 6.7.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      The Form class' error messages for file uploads are not localized. The error messages are created in the method Form#onFileUploadException(FileUploadException, Map).

      First of all, the form class makes it hard to add localization because the component id is prepended to the resource key when doing string lookups. I believe this should be modified to follow the behavior of other components.

      Here are suggestions for two localizations of the messages:
      EN:
      uploadTooLarge=Upload must be less than ${maxSize}
      uploadFailed=Upload failed: ${exception}

      FR:
      uploadTooLarge=Le fichier doit avoir une taille inférieure à ${maxSize}
      uploadFailed=Erreur de téléchargement: ${exception}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                svenmeier Sven Meier
                Reporter:
                berniegp Bertrand Guay-Paquet
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: