Localisation with Json language does not work with editor buttons "New, Edit, delete"

Localisation with Json language does not work with editor buttons "New, Edit, delete"

fabioberettafabioberetta Posts: 74Questions: 23Answers: 4

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
Hello,

I am trying to localise my application in different languages.

I have downloaded the json file to translate the various messages. A fem messages are missing but I can add them up and eventually feed as contribution to your file.

On the other end the buttons New, Edit Delete... are not translated.

I read a couple of post mentioning to initialise into initComplete but apart from that I did not find and translation int the json files.

How should I do?

Thanks
Fabio

Answers

  • fabioberettafabioberetta Posts: 74Questions: 23Answers: 4

    Sorry for the silly question.

    I have found out that I can add manually the buttons translation in the json file:

    "buttons": {
            "create": "Nouveau",
            "remove": "Effacer",
            "edit": "Modifier",
            "copy": "copier",
            "copyKeys": "Appuyer sur ctrl ou u2318 + C pour copier les données du tableau dans votre presse-papier.",
            "copySuccess": {
                "1": "une ligne copiée dans le presse-papier"
            },
            "copyTitle": "copier dans le presse-papier",
            "csv": "csv",
            "excel": "excel",
            "pdf": "pdf",
            "print": "imprimer"
        }
    

    They were not in by default but adding them solved the problem.

This discussion has been closed.