From 928b6060830d18f9a6b20510e991ac486836b687 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 12 Jan 2024 22:52:42 +0000 Subject: [PATCH] Bug 35769: Fix untranslatable strings in request.tt This fixes some strings in the JavaScript part of the template that were missing from the po files. This is one way to test: * Apply patch * Run gulp po:update --lang * Compare strings changed in the patch, with strings appearing in -staff-prog.po * Translate the strings and remove "fuzzy" line * In k-t-d, run: sudo koha-translate --install --dev * Verify that now the translated version of the template contains your translated strings * Verify the translated page works correctly, no errors Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 1380aa37dc..d77217e561 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -1724,7 +1724,7 @@ if ( selected_items.closest('tr').find(".pickup_locations").val() == '' ) { - msg = _("- Please select a pickup location for the item" + "\n") + msg = (_("- Please select a pickup location for the item") + "\n"); } } else { @@ -1742,7 +1742,7 @@ } else { // Requesting next available if( $("#pickup-next-avail").length < 1 || $("#pickup-next-avail").val() == "" || $('#pickup-next-avail').val() === null ){ - msg = _("- Please select a pickup location for this hold" + "\n"); + msg = (_("- Please select a pickup location for this hold") + "\n"); } } -- 2.39.5