Bugzilla – Attachment 96285 Details for
Bug 24046
'Activate filters' untranslatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24046: Untranslatable 'Activate filters'
Bug-24046-Untranslatable-Activate-filters.patch (text/plain), 2.41 KB, created by
Owen Leonard
on 2019-12-13 22:55:52 UTC
(
hide
)
Description:
Bug 24046: Untranslatable 'Activate filters'
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-12-13 22:55:52 UTC
Size:
2.41 KB
patch
obsolete
>From 4eeac6546c1b14512a90b369abbc0c341dcb9c17 Mon Sep 17 00:00:00 2001 >From: Maryse Simard <maryse.simard@inlibro.com> >Date: Mon, 18 Nov 2019 08:50:52 -0500 >Subject: [PATCH] Bug 24046: Untranslatable 'Activate filters' > >Bug 9573 moved the code for the table filters activation to it's >own javascript file. The strings contained in this file are not >translatable. This patch moves the strings to the datatables >include file since the filters are related to datatables. > >Test plan: >Visit the catalogue/detail.pl and reports/itemslost.pl and test >that the 'Activate/Deactivate filters' option still work correctly. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/datatables.inc | 2 ++ > koha-tmpl/intranet-tmpl/prog/js/table_filters.js | 4 ++-- > 2 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/datatables.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/datatables.inc >index ba57f32b31..cf0043e545 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/datatables.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/datatables.inc >@@ -23,5 +23,7 @@ > var MSG_DT_COPY_SUCCESS_ONE = _("Copied one row to clipboard"); > var MSG_DT_COPY_SUCCESS_X = _("Copied %d rows to clipboard"); > var MSG_CLEAR_FILTER = _("Clear filter"); >+ var MSG_ACTIVATE_FILTERS = _("Activate filters"); >+ var MSG_DEACTIVATE_FILTERS = _("Deactivate filters"); > </script> > [% Asset.js("js/datatables.js") | $raw %] >diff --git a/koha-tmpl/intranet-tmpl/prog/js/table_filters.js b/koha-tmpl/intranet-tmpl/prog/js/table_filters.js >index 6607120d35..d7c4dc8988 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/table_filters.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/table_filters.js >@@ -23,7 +23,7 @@ function activate_filters(id) { > } > > $('#' + id + '_activate_filters') >- .html('<i class="fa fa-filter"></i> ' + _("Deactivate filters") ) >+ .html('<i class="fa fa-filter"></i> ' + MSG_DEACTIVATE_FILTERS ) > .unbind('click') > .click(function() { > deactivate_filters(id); >@@ -41,7 +41,7 @@ function deactivate_filters(id) { > filters_row.hide(); > > $('#' + id + '_activate_filters') >- .html('<i class="fa fa-filter"></i> ' + _("Activate filters") ) >+ .html('<i class="fa fa-filter"></i> ' + MSG_ACTIVATE_FILTERS ) > .unbind('click') > .click(function() { > activate_filters(id); >-- >2.11.0
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 24046
:
95437
|
95514
|
96231
|
96285
|
96291