Bug 24046

Summary: 'Activate filters' untranslatable
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: I18N/L10NAssignee: Maryse Simard <maryse.simard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: 1joynelson, f.demians, fridolin.somers, hayleypelham, jonathan.druart, katrin.fischer, lucas, martin.renvoize, maryse.simard, oleonard
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
20.05.00, 19.11.02, 19.05.07, 18.11.13
Bug Depends on:    
Bug Blocks: 22490    
Attachments: Intranet detail page in fr-CA
Bug 24046: Untranslatable 'Activate filters'
Bug 24046: Untranslatable 'Activate filters'
Bug 24046: Untranslatable 'Activate filters'
Bug 24046: Untranslatable 'Activate filters'

Description Caroline Cyr La Rose 2019-11-14 16:49:40 UTC
Created attachment 95437 [details]
Intranet detail page in fr-CA

When looking at the intranet detail page, in the holdings tab, there is 'Activate filters' which is untranslatable. I *think* it's because it's in a JS tidbit of code, but I'm not sure...

See screenshot of fr-CA detail page with Activate filters in English.
Comment 1 Maryse Simard 2019-11-18 14:51:09 UTC
Created attachment 95514 [details] [review]
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 their own strings
file which is then included with the javascript from the templates.

Test plan:
Visit the catalogue/detail.pl and reports/itemslost.pl and test
that the 'Activate/Deactivate filters' option still work correctly.
Comment 2 Jonathan Druart 2019-11-25 14:39:07 UTC
Hi Maryse,
I do not think we should have a new include file in str/
I would suggest to have those strings defined in datatables.inc instead, as they are related to dataTable
Comment 3 Maryse Simard 2019-12-12 17:38:52 UTC
Created attachment 96231 [details] [review]
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.
Comment 4 Maryse Simard 2019-12-12 17:41:29 UTC
(In reply to Jonathan Druart from comment #2)
> I would suggest to have those strings defined in datatables.inc instead, as
> they are related to dataTable

This makes sense. I amended the patch to move the strings to this file.
Comment 5 Owen Leonard 2019-12-13 22:55:52 UTC
Created attachment 96285 [details] [review]
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>
Comment 6 Jonathan Druart 2019-12-15 11:14:09 UTC
Created attachment 96291 [details] [review]
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>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 7 Martin Renvoize 2019-12-23 11:32:33 UTC
Nice work everyone!

Pushed to master for 20.05
Comment 8 Joy Nelson 2020-01-12 18:46:09 UTC
Pushed to 19.11.x branch for 19.11.02
Comment 9 Lucas Gass 2020-01-13 22:26:52 UTC
backported to 19.05.x for 19.05.07
Comment 10 Hayley Pelham 2020-01-14 20:41:46 UTC
Backported to 18.11.x for 18.11.13