From 87014b97860bd158ee8c3656384495902c9e5910 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 16 Jan 2024 11:00:30 +0000 Subject: [PATCH] Bug 34479: Fix string for translatability When moved from .tt to .js we need to convert the single underscore into a double underscore. Also uses format() to better deal with the variable. Signed-off-by: Katrin Fischer (cherry picked from commit 066e34956112c5e370ed804fbafd50fc29be0e34) Signed-off-by: Fridolin Somers (cherry picked from commit 265826ea32acecdaf0b7a70f918e6a29c3ae9fcf) Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/js/members-patron-selections.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/members-patron-selections.js b/koha-tmpl/intranet-tmpl/prog/js/members-patron-selections.js index 228cad3293..b629fbc4ba 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/members-patron-selections.js +++ b/koha-tmpl/intranet-tmpl/prog/js/members-patron-selections.js @@ -18,7 +18,7 @@ function showPatronSelections(number) { if (number === 0) { $("#table_search_selections").hide() } else { - $("#table_search_selections").show().find("span").text(_("Patrons selected: " + number)); + $("#table_search_selections").show().find("span").text(__("Patrons selected: %s".format(number))); } } -- 2.39.2