How to localize "Retry", "Cancel" buttons of the Spreadsheet messages?

3 Answers 147 Views
Localization Spreadsheet
serge
Top achievements
Rank 2
Bronze
Iron
Iron
serge asked on 10 May 2021, 08:59 AM | edited on 10 May 2021, 09:26 AM

How to localize "Retry", "Cancel" buttons of the Spreadsheet messages?

 

I added that to the head of the page, but didn't help

<script src="https://kendo.cdn.telerik.com/2021.1.330/js/cultures/kendo.culture.fr-FR.min.js")"></script>
<script src="https://kendo.cdn.telerik.com/2021.1.330/js/messages/kendo.messages.fr-FR.min.js"></script>

The question is also on SO: question

3 Answers, 1 is accepted

Sort by
0
serge
Top achievements
Rank 2
Bronze
Iron
Iron
answered on 10 May 2021, 11:12 AM | edited on 10 May 2021, 11:12 AM

Probably the spreadsheet is not translated, please integrate this translation for french: 

$(function () {
    /* Spreadsheet messages */
    if (kendo.spreadsheet) {
        kendo.spreadsheet.messages.dialogs =
            $.extend(true, kendo.spreadsheet.messages.dialogs, {
                apply: 'Appliquer',
                save: 'Enregistrer les modifications',
                cancel: 'Annuler',
                remove: 'Retirer',
                retry: 'Réessayer',
                revert: 'Rétablir',
                okText: 'OK',
                formatCellsDialog: {
                    title: 'Format',
                    categories: {
                        number: 'Nombre',
                        currency: 'Devise',
                        date: 'Date'
                    }
                },
                fontFamilyDialog: { title: 'Police' },
                fontSizeDialog: { title: 'Taille de la police' },
                bordersDialog: { title: 'Bordures' },
                alignmentDialog: {
                    title: 'Alignment',
                    buttons: {
                        justtifyLeft: 'Aligner à gauche',
                        justifyCenter: 'Centrer',
                        justifyRight: 'Aligner à droite',
                        justifyFull: 'Justifier',
                        alignTop: 'Aligner le haut',
                        alignMiddle: 'Aligner le centre',
                        alignBottom: 'Aligner le bas'
                    }
                },
                mergeDialog: {
                    title: 'Fusionner les cellules',
                    buttons: {
                        mergeCells: 'Fusionner tout',
                        mergeHorizontally: 'Fusionner horizontalement',
                        mergeVertically: 'Fusionner verticalement',
                        unmerge: 'Annuler la fusion des cellules'
                    }
                },
                freezeDialog: {
                    title: 'Figer les volets',
                    buttons: {
                        freezePanes: 'Figer les volets',
                        freezeRows: 'Figer les lignes',
                        freezeColumns: 'Figer les colonnes',
                        unfreeze: 'Libérer les volets'
                    }
                },
                confirmationDialog: {
                    text: 'Êtes-vous sûr de vouloir supprimer cette feuille ?',
                    title: 'Suppression de la feuille'
                },
                validationDialog: {
                    title: 'Validation des données',
                    hintMessage: 'Please enter a valid {0} value {1}.',
                    hintTitle: 'Validation {0}',
                    criteria: {
                        any: 'Toute value',
                        number: 'Nombre',
                        text: 'Texte',
                        date: 'Date',
                        custom: 'Formule personnalisée',
                        list: 'Liste'
                    },
                    comparers: {
                        greaterThan: 'supérieur(e) à',
                        lessThan: 'inférieur(e) à',
                        between: 'entre',
                        notBetween: 'pas entre',
                        equalTo: 'égal(e) à',
                        notEqualTo: 'differente de',
                        greaterThanOrEqualTo: 'supérieur(e) ou égal(e) à',
                        lessThanOrEqualTo: 'inférieur(e) ou égal(e) à'
                    },
                    comparerMessages: {
                        greaterThan: 'supérieur(e) à {0}',
                        lessThan: 'inférieur(e) à {0}',
                        between: 'entre {0} et {1}',
                        notBetween: 'pas entre {0} et {1}',
                        equalTo: 'égal(e) à {0}',
                        notEqualTo: 'differente de {0}',
                        greaterThanOrEqualTo: 'supérieur(e) ou égal(e) à {0}',
                        lessThanOrEqualTo: 'inférieur(e) ou égal(e) à {0}',
                        custom: 'qui satisfait à la formule : {0}'
                    },
                    labels: {
                        criteria: 'Critère',
                        comparer: 'Comparateur',
                        min: 'Min',
                        max: 'Max',
                        value: 'Valeur',
                        start: 'Début',
                        end: 'Fin',
                        onInvalidData: 'Sur les données invalides',
                        rejectInput: 'Rejeter l\'entrée',
                        showWarning: 'Afficher l\'avertissement',
                        showHint: 'Afficher la note',
                        hintTitle: 'Afficher le titre',
                        hintMessage: 'Afficher le message',
                        ignoreBlank: 'Ignorer l\'espace vide',
                        showListButton: 'Afficher le bouton pour montrer la liste',
                        showCalendarButton: 'Afficher le bouton pour afficher le calendrier'
                    },
                    placeholders: {
                        typeTitle: 'Tapez le titre',
                        typeMessage: 'Tapez le message'
                    }
                },
                exportAsDialog: {
                    title: 'Exporter...',
                    defaultFileName: 'Classeur',
                    xlsx: { description: 'Classeur Excel (.xlsx)' },
                    pdf: {
                        description: 'Portable Document Format (.pdf)',
                        area: {
                            workbook: 'Tout le classeur',
                            sheet: 'Feilule active',
                            selection: 'Sélection'
                        },
                        paper: {
                            a2: 'A2 (420 mm \xD7 594 mm)',
                            a3: 'A3 (297 mm x 420 mm)',
                            a4: 'A4 (210 mm x 297 mm)',
                            a5: 'A5 (148 mm x 210 mm)',
                            b3: 'B3 (353 mm \xD7 500 mm)',
                            b4: 'B4 (250 mm x 353 mm)',
                            b5: 'B5 (176 mm x 250 mm)',
                            folio: 'Folio (8.5" x 13")',
                            legal: 'Legal (8.5" x 14")',
                            letter: 'Lettre (8.5" x 11")',
                            tabloid: 'Tabloïd (11" x 17")',
                            executive: 'Executive (7.25" x 10.5")'
                        },
                        margin: {
                            normal: 'Normale',
                            narrow: 'Etroite',
                            wide: 'Large'
                        }
                    },
                    labels: {
                        scale: 'Mettre à l\'échelle',
                        fit: 'Ajuster à la page',
                        fileName: 'Nom du fichier',
                        saveAsType: 'Enregistrer comme type',
                        exportArea: 'Exporter',
                        paperSize: 'Taille du papier',
                        margins: 'Marges',
                        orientation: 'Orientation',
                        print: 'Imprimer',
                        guidelines: 'Lignes directrices',
                        center: 'Centrer',
                        horizontally: 'Horizontalement',
                        vertically: 'Verticalement'
                    }
                },
                modifyMergedDialog: { errorMessage: 'Impossible de modifier une partie d\'une cellule fusionnée.' },
                rangeDisabledDialog: { errorMessage: 'La plage de destination contient des cellules désactivées.' },
                intersectsArrayDialog: { errorMessage: 'Vous ne pouvez pas modifier une partie d\'un tableau' },
                incompatibleRangesDialog: { errorMessage: 'Plages incompatibles' },
                noFillDirectionDialog: { errorMessage: 'Impossible de déterminer la direction du remplissage' },
                duplicateSheetNameDialog: { errorMessage: 'Nom de la feuille en double' },
                overflowDialog: { errorMessage: 'Impossible de coller, car la zone de copie et la zone de collage n\'ont pas la même taille et/ou forme.' },
                useKeyboardDialog: {
                    title: 'Le copier/coller',
                    errorMessage: 'Ces actions ne peuvent pas être invoquées via le menu. Veuillez utiliser les raccourcis clavier à la place :',
                    labels: {
                        forCopy: 'pour copier',
                        forCut: 'pour couper',
                        forPaste: 'pour coller'
                    }
                },
                unsupportedSelectionDialog: { errorMessage: 'Cette action ne peut pas être effectuée sur une sélection multiple.' },
                linkDialog: {
                    title: 'Lien hypertexte',
                    labels: {
                        text: 'Texte',
                        url: 'Adresse',
                        removeLink: 'Supprimer le lien'
                    }
                },
                insertCommentDialog: {
                    title: 'Insérer un commentaire',
                    labels: {
                        comment: 'Commentaire',
                        removeComment: 'Supprimer le commentaire'
                    }
                },
                insertImageDialog: {
                    title: 'Insérer une image',
                    info: 'Faites glisser une image ici, ou cliquez pour la sélectionner',
                    typeError: 'Veuillez sélectionner une image JPEG, PNG ou GIF.'
                }
            });
    }
});

0
Stoyan
Telerik team
answered on 13 May 2021, 08:55 AM

Hi Serge,

At present translations are not available for every language and some of the localization files may be incomplete. This appears to be the case with the Spreadsheet's French translation.

I see you have translated the messages you need. Please refer to this article to make sure that you are correctly applying the translated message to the Spreadsheet Component. Then you can add the JS file  containing the translation in a similar fashion:

<script src="https://kendo.cdn.telerik.com/2021.1.330/js/jquery.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2021.1.330/js/kendo.all.min.js"></script>
<script src="<file-location>/<custom-messages-filename"></script>


Our team and the community will appreciate it, if you consider contributing your translation by forking our repository and submitting a pull request. For further information see this Contribution paragraph. 

Please let me know, if additional questions occur.

Regards,
Stoyan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

serge
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 15 May 2021, 09:55 PM

I forked, translated, pushed, but not sure if there is any activity on the master branch...
Stoyan
Telerik team
commented on 19 May 2021, 02:15 PM | edited

Hello, Serge, 

The pull request you have submitted is present on our public Kendo Core repo. Review it here.

Additionally please sign the Kendo UI Core Contribution Agreement (CLA). This will allow me to move on and review the pull request. 

Since you are taking the time to make a contribution, I should note that upon its successful completion you will be eligible for up to 5000 Telerik points.

Regards,
Stoyan

serge
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 01 Jun 2021, 09:14 AM

to day, the merge is still reviewed (17 days), nor any points added )
Stoyan
Telerik team
commented on 04 Jun 2021, 09:16 AM | edited

Hi Serge,

I apologize for the delay. It is caused by an adjustment in our procedures for Publishing and Completing of Feature Branches . I have reviewed your contribution and have approved its contents. I will reflect this in the GitHub repo as soon as possible. Additionally the points will be awarded promptly as the changes become live on our Production branch.

Thank you for your patience and understanding.

0
Stoyan
Telerik team
answered on 04 Jun 2021, 11:58 AM

Hello Serge,

Once again thank you for your patience.

Your contribution has been approved and successfully merged.

As a token of gratitude I have updated your Telerik Points.

Regards,
Stoyan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Localization Spreadsheet
Asked by
serge
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
serge
Top achievements
Rank 2
Bronze
Iron
Iron
Stoyan
Telerik team
Share this question
or