From 2a2988e9c33b604b17d157a72ea953669668c929 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Tue, 13 Jul 2021 16:58:39 +0200 Subject: [PATCH] TT#128256 Add localisation for datatable pager 'All' element Change-Id: I55e7dbbd8214b14305bfd22f91483b155cb8556d --- share/templates/helpers/datatables.tt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/share/templates/helpers/datatables.tt b/share/templates/helpers/datatables.tt index c46102c3f7..67f4bff3b2 100644 --- a/share/templates/helpers/datatables.tt +++ b/share/templates/helpers/datatables.tt @@ -75,9 +75,12 @@ $(document).ready(function() { "iStateDuration": 0, "sPaginationType": "bootstrap", - [% IF helper.length_change %] + [% IF helper.length_change ; + sLabelAll=c.loc('All'); + aDefaultPager='[[ 5, 10, 15, 20, 35, 50, 100, 250, -1], [5, 10, 15, 20, 35, 50, 100, 250, "' _ sLabelAll _ '"]]' + -%] "bLengthChange": true, - "aLengthMenu": [% helper.length_menu || '[[ 5, 10, 15, 20, 35, 50, 100, 250, -1], [5, 10, 15, 20, 35, 50, 100, 250, "All"]]' %], + "aLengthMenu": [% helper.length_menu || aDefaultPager %], [% ELSE %] "bLengthChange": false, [% END %]