From 421ade6746ea71ff0bd083dabb53085ce751ace2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 16 Jun 2020 16:12:50 +0200 Subject: [PATCH] Bug 25287: Make the strings from .js translatable --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 5c8ab9e419..13db0e495c 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -522,7 +522,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { 'pagingType': 'full_numbers', 'processing': true, 'language': { - 'emptyTable': (options.emptyTable) ? options.emptyTable : _("No data available in table") + 'emptyTable': (options.emptyTable) ? options.emptyTable : __("No data available in table") }, 'ajax': { 'type': 'GET', @@ -637,7 +637,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { var export_buttons = [ { extend: 'excelHtml5', - text: _("Excel"), + text: __("Excel"), exportOptions: { columns: exportColumns, format: export_format @@ -645,7 +645,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { }, { extend: 'csvHtml5', - text: _("CSV"), + text: __("CSV"), exportOptions: { columns: exportColumns, format: export_format @@ -653,7 +653,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { }, { extend: 'copyHtml5', - text: _("Copy"), + text: __("Copy"), exportOptions: { columns: exportColumns, format: export_format @@ -661,7 +661,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { }, { extend: 'print', - text: _("Print"), + text: __("Print"), exportOptions: { columns: exportColumns, format: export_format @@ -673,9 +673,9 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { { fade: 100, className: "dt_button_clear_filter", - titleAttr: _("Clear filter"), + titleAttr: __("Clear filter"), enabled: false, - text: ' ' + _("Clear filter") + '', + text: ' ' + __("Clear filter") + '', action: function ( e, dt, node, config ) { dt.search( "" ).draw("page"); node.addClass("disabled"); @@ -690,8 +690,8 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { fade: 100, columns: included_ids, className: "columns_controls", - titleAttr: _("Columns settings"), - text: ' ' + _("Columns") + '', + titleAttr: __("Columns settings"), + text: ' ' + __("Columns") + '', exportOptions: { columns: exportColumns } @@ -705,8 +705,8 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { autoClose: true, fade: 100, className: "export_controls", - titleAttr: _("Export or print"), - text: ' ' + _("Export") + '', + titleAttr: __("Export or print"), + text: ' ' + __("Export") + '', buttons: export_buttons } ); -- 2.20.1