Bugzilla – Attachment 105919 Details for
Bug 25287
Add columns_settings support to API datatables wrapper
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25287: Make the strings from .js translatable
Bug-25287-Make-the-strings-from-js-translatable.patch (text/plain), 4.52 KB, created by
Jonathan Druart
on 2020-06-16 14:13:04 UTC
(
hide
)
Description:
Bug 25287: Make the strings from .js translatable
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-06-16 14:13:04 UTC
Size:
4.52 KB
patch
obsolete
>From 421ade6746ea71ff0bd083dabb53085ce751ace2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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: '<i class="fa fa-lg fa-remove"></i> <span class="dt-button-text">' + _("Clear filter") + '</span>', >+ text: '<i class="fa fa-lg fa-remove"></i> <span class="dt-button-text">' + __("Clear filter") + '</span>', > 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: '<i class="fa fa-lg fa-gear"></i> <span class="dt-button-text">' + _("Columns") + '</span>', >+ titleAttr: __("Columns settings"), >+ text: '<i class="fa fa-lg fa-gear"></i> <span class="dt-button-text">' + __("Columns") + '</span>', > 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: '<i class="fa fa-lg fa-download"></i> <span class="dt-button-text">' + _("Export") + '</span>', >+ titleAttr: __("Export or print"), >+ text: '<i class="fa fa-lg fa-download"></i> <span class="dt-button-text">' + __("Export") + '</span>', > buttons: export_buttons > } > ); >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25287
:
103728
|
103827
|
104436
|
105919
|
105921
|
105922