Editor i18n options for Upload/UploadMany

Editor i18n options for Upload/UploadMany

VitalizVitaliz Posts: 71Questions: 7Answers: 1
edited December 2015 in Editor

Hi!
I use uploadMany field in my Editor definition and I need to localize it.
I'd try to change noImageText, but nothing has changed in the editor's interface.
I want to change Upload button's caption too, but don't find how I can do it.

{
                label: "Images:",
                name: "files[].id",
                type: "uploadMany",
                     display: function ( fileId, counter) {
                      //return all_files.files[fileId].filename; 
                       return $.fn.dataTable.Editor.files.files[fileId].filename;
                      },  
                      dragDrop: false,
                      noImageText: 'Добавьте файлы'
                                    }

Can I change Upload button caption from "Choose file..." to other string?

P.S. I still use DataTables Editor v1.5.1.

Replies

  • allanallan Posts: 61,744Questions: 1Answers: 10,111 Site admin

    You want to use the uploadText option of the upload field type.

    Allan

  • VitalizVitaliz Posts: 71Questions: 7Answers: 1

    Thank you. My my carelessness. Read the docs, but do not see before(.

This discussion has been closed.