Editor translation
Editor translation

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.
This discussion has been closed.
Answers
Very similar to DataTables, there is a
i18n
option for Editor which is used to configure the strings it displayed. See the Editor manual page on internationalisation for details.This example also shows it in action.
Allan