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

Add localization for Form file upload errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 6.7.0
    • None
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: