i18n.field.upload
Defaults for the strings used by upload fields.
Please note - this property requires the Editor extension for DataTables.
The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please sign-in, alternatively an Editor license can be purchased on this site, or sign up for the free trial.
Description
This object provides a container for the strings used by the upload
field type. Each string can be set directly on the field's object (see the i18n
option of upload
), but can also be set here to have a default value. This is particularly useful when providing a full translation for Editor and you are happy with the generic terms for the field type.
It is worth highlighting that Editor's language strings can be loaded from the JSON language object that DataTables loads during its startup (language
). That allows a single file to provide a full translation for DataTables and Editor.
The following properties can be set on this object.
choose
- Text shown on theinput
button for the file input (i.e. where the user clicks to get the file picker dialogue). The default text isChoose file...
.clear
- Clear button text. The clear button will only be shown if a value is set for this parameter. The default is an empty string (i.e. the clear button will not be shown).dragDrop
- Text shown in the zone where the end user can drag a file to, to start an upload. The default text isDrag and drop a file here to upload
.noFile
- Shown in the file area when there is no value for the field. The default isNo file
.processing
- Shown in place ofchoose
in theinput
when a file is being readied for upload. The default isProcessing
.uploading
- Shown in place ofchoose
in theinput
when a file is being uploaded. The defailt isUploading file
.