Editor translation

Editor translation

praadpraad Posts: 1Questions: 1Answers: 0
edited October 2020 in Free community support

Hello how can I translate, editor buttons and other texts from like "Create new entry", "Are you sure" text of deletion window? Thanks

I use this config for translationg the grid:

switch (lang) {
        case 'hu':
            config = {
                "language": {
                    "decimal": ",",
                    "thousands": ".",
                    "sEmptyTable": "Nincs rendelkezésre álló adat",
                    "sInfo": "Találatok: _START_ - _END_ Összesen: _TOTAL_",
                    "sInfoEmpty": "Nulla találat",
                    "sInfoFiltered": "(_MAX_ összes rekord közül szűrve)",
                    "sInfoPostFix": "",
                    "sInfoThousands": " ",
                    "sLengthMenu": "_MENU_ találat oldalanként",
                    "sLoadingRecords": "Betöltés...",
                    "sProcessing": "Feldolgozás...",
                    "sSearch": "Keresés:",
                    "sZeroRecords": "Nincs a keresésnek megfelelő találat",
                    "oPaginate": {
                        "sFirst": "Első",
                        "sPrevious": "Előző",
                        "sNext": "Következő",
                        "sLast": "Utolsó"
                    },
                    "oAria": {
                        "sSortAscending": ": aktiválja a növekvő rendezéshez",
                        "sSortDescending": ": aktiválja a csökkenő rendezéshez"
                    },
                    "select": {
                        "rows": {
                            "_": "%d sor kiválasztva",
                            "0": "",
                            "1": "1 sor kiválasztva"
                        }
                    },
                    "buttons": {
                        "print": "Nyomtatás",
                        "colvis": "Oszlopok",
                        "copy": "Másolás",
                        "copyTitle": "Vágólapra másolás",
                        "copySuccess": {
                            "_": "%d sor másolva",
                            "1": "1 sor másolva"
                        }
                    }
                }
            };
            break;

        case 'en':
            config = {
                "language": {
                    "decimal": ".",
                    "thousands": ",",
                    "sEmptyTable": "No data available in table",
                    "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
                    "sInfoEmpty": "Showing 0 to 0 of 0 entries",
                    "sInfoFiltered": "(filtered from _MAX_ total entries)",
                    "sInfoPostFix": "",
                    "sInfoThousands": ",",
                    "sLengthMenu": "Show _MENU_ entries",
                    "sLoadingRecords": "Loading...",
                    "sProcessing": "Processing...",
                    "sSearch": "Search:",
                    "sZeroRecords": "No matching records found",
                    "oPaginate": {
                        "sFirst": "First",
                        "sLast": "Last",
                        "sNext": "Next",
                        "sPrevious": "Previous"
                    },
                    "oAria": {
                        "sSortAscending": ": activate to sort column ascending",
                        "sSortDescending": ": activate to sort column descending"
                    }
                }
            };
            break;

        default:
            console.log('Missing datatables settings for "' + lang + '"');
    }

Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

This discussion has been closed.