How To Translate The Alert Message Displayed For Validations
Solution 1:
All messages and text in Fine Uploader are overridable. See the messages
option in FineUploaderBasic mode, the messages
option in FineUploader mode to override error and other related messages.
To override any other text, see the text
option in FineUploaderBasic mode and the text
option in FineUploader mode.
For example, if you want to customize the message that is display when a submitted item is too large, you would need to override the sizeError
property of the messages
option and your code may look something like this:
varuploader=newqq.FineUploader({request: {
endpoint:'my/endpoint'
},validation: {
sizeLimit:5000000
},messages: {
sizeError:'{file} is far too big! Your files must be restricted to {sizeLimit} or smaller.'
}
});
The {file}
text will be replaced by Fine Uploader with the file name, and the {sizeLimit}
text will be replaced with the size limit you specified. If you have further questions about validation or customizing messages, please refer to the documentation.
Post a Comment for "How To Translate The Alert Message Displayed For Validations"