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
- duplicates
-
WICKET-5206 Provide default messages for upload exceptions
-
- Resolved
-