From cb53c0bedabfa9590efc95dfabeb375960799d0a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 3 Aug 2016 15:48:42 +0100 Subject: [PATCH] Bug 17040: Fix translation on context menu when editing items MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Test plan: update and install translated language files On the item list (cataloguing/additem.pl) the context menu should be translated (Edit item/Delete item) Signed-off-by: Frédéric Demians Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall (cherry picked from commit 72150ee7596e2644febbab248e6b3c9b7b3af69b) Signed-off-by: Frédéric Demians --- .../intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 75b5ea87f0..8c642b577a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -37,8 +37,10 @@ $(document).ready(function(){ var rowid = $(this).parent().attr("id"); num_rowid = rowid.replace("row",""); $(".linktools").remove(); - var edit_link = $('' + _("Edit item") + ''); - var delete_link = $('' + _("Delete item") + ''); + var edit_link = $(''); + $(edit_link).text(_("Edit item")); + var delete_link = $(''); + $(delete_link).text(_("Delete item")); $(delete_link).on('click', function(e) { return confirm_deletion(); }); -- 2.39.5