From 76261b58ab5d0f276198d4d8b17d32013e5102c5 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 27 Feb 2018 12:59:56 +0200 Subject: [PATCH] Bug 20302: Allow translating Delete button in Patron batch mod tool There is an untranslatable Delete-button in the patron batch modification tool. Allow translating it. Test plan: 1) Go to Home -> Tools -> Batch patron modification, put a patron's card number in the box, and click on Continue 2) At the bottom of the screen there is an drop-down entry for Attribute, click on the "New" at the nd of that line 3) There should now be another Attribute -line, with "Delete" -link at the end of that line 4) Apply patch, install a language 5) Repeat 1-3 in that language, the Delete-link should be shown in the correct language, if the msgid "Delete" was translated in xx-YY-staff-prog.po Signed-off-by: Pasi Kallinen --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index d4a9e234d3..175c9c88b9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -388,7 +388,7 @@ var li_node = $("li.attributes:last"); var li_clone = $(li_node).clone(); if ( $(li_clone).find("a.del_attributes").length == 0 ) { - $(li_clone).append(' Delete'); + $(li_clone).append(' ' + _("Delete") + ''); } $(li_clone).find('select[name="patron_attributes"]').change(function() { updateAttrValues(this); -- 2.11.0