From ccd824532156eff6a97135a4e8cc766f3d7df894 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 11 Jul 2013 10:53:06 -0400 Subject: [PATCH] Bug 10576: make strings in additem.js accessible to translation There are a couple of untranslatable strings in additem.js. This patch moves the strings out of the script and into the include file which has been created for this purpose. To test, apply the patch and test the process for adding an item to an existing or new basket (with AcqCreateItem set to "when placing an order." The add item form should be correctly labeled "Add item." After adding an item, click to edit it again. The form should now be labeled "Update item." Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Works nicely and passes all tests. Made sure strings can be translated testing with German templates. Signed-off-by: Galen Charlton (cherry picked from commit b7305e4876e6d961e8325155d679b1312975e74d) Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/includes/additem.js.inc | 2 ++ koha-tmpl/intranet-tmpl/prog/en/js/additem.js | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/additem.js.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/additem.js.inc index 5ab37f440b..28d39e4b04 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/additem.js.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/additem.js.inc @@ -1,5 +1,7 @@