editor window translation

editor window translation

calacala Posts: 52Questions: 15Answers: 0

Is it possible to translate/modify the text in the editor window?

for example: "Drag and drop a file here to upload", "Choose file" and "Create" on the button...

Thank you!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,760Questions: 1Answers: 10,510 Site admin
    Answer ✓

    Absolutely - all of the internationalisation options are documented in the Editor reference. Click the "Internationalisation" button to show only the i18n options.

    The upload field type also has a few options of its own such as dragDropText which are documented in the upload field type reference page.

    Regards,
    Allan

  • calacala Posts: 52Questions: 15Answers: 0

    Thank you so much!

    For like-me-noob, in the editor configuration I set:

    fields: [
        {
            label: "Allegati:",
            name: "afiles[].id",
            type: "uploadMany",
            display: function ( file_id, counter ) {
                ...
            },
                    
            //translation of the fields in the edit/create editor window
            clearText: "Clear",
             noImageText: 'No image',
            dragDropText: 'Trascina qui un file per caricarlo',
            noFileText: 'Nessun file caricato',
            uploadText: 'Carica file...',
        }
    ],
    i18n: {  //translation of the buttons
        create: {
            submit: 'Crea protocollo'
        },
        edit: {
            submit: 'Aggiorna protocollo'
       }
    }
    
This discussion has been closed.