From b350cbd6005b3056565bb94fbd853d9e64decf29 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 13 Dec 2021 10:17:30 -0300 Subject: [PATCH] Bug 28377: (QA follow-up) .js files should use __() As noted by QA, this bug contained uses of _() which is not correct in include .js files [1]. [1] https://wiki.koha-community.org/wiki/Coding_Guidelines#JS5:_Enabling_translation_of_language_strings_in_linked_JavaScript Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/js/holds.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index 110d142fc9..5570716f52 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -330,7 +330,7 @@ $(document).ready(function() { alert(__("Unable to resume, hold not found")); } else { - alert(_("Your request could not be processed. Check the logs")); + alert(__("Your request could not be processed. Check the logs")); } holdsTable.api().ajax.reload(); }); @@ -419,7 +419,7 @@ $(document).ready(function() { alert(__("Unable to suspend, hold not found")); } else { - alert(_("Your request could not be processed. Check the logs")); + alert(__("Your request could not be processed. Check the logs")); } holdsTable.api().ajax.reload(); }).done(function() { -- 2.32.0