From 97afef940b72164222a20a81904b4ec60c6aa430 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 1 Mar 2021 12:24:41 +0000 Subject: [PATCH] Bug 27815: "Remove" in point of sale untranslatable This patch modifies the Point of Sale template so that the "Remove" button can be translated. The string in the JavaScript block wasn't wrapped in the correct function. To test, apply the patch and test that the correct strings are translatable. In this example I'm testing fr-FR: - Update a translation: > cd misc/translator > perl translate update fr-FR - Open the corresponding .po file for the strings pulled from the template: e.g. misc/translator/po/fr-FR-staff-prog.po - Locate strings pulled from pos/pay.tt for translation to confirm the update, e.g.: #: koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt:189 #, c-format msgid "Remove" msgstr "Enlever" - Install the updated translation: > perl translate install fr-FR - In the staff client, go to Point of Sale. - Switch to the French translation and click the "Ajouter" button next to one of the items for purchase. - In the "This sale" table, the item you added should have a corresponding "Enlever" button. --- koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt index 4d35b60ff7..2a33c78b72 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt @@ -244,7 +244,7 @@ defaultPrice.value, 1, null, - '', + '', invoiceCode ] ); -- 2.11.0