Bug 10576: make strings in additem.js accessible to translation
authorOwen Leonard <oleonard@myacpl.org>
Thu, 11 Jul 2013 14:53:06 +0000 (10:53 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 22 Jul 2013 15:40:21 +0000 (15:40 +0000)
commitb7305e4876e6d961e8325155d679b1312975e74d
tree56a2b5f88c9f62a230b194aca7a1f2bd8f731009
parent04dd98fa846d4f28edc5811cb90e8a5ba4b6289b
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 <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works nicely and passes all tests.
Made sure strings can be translated testing with German templates.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/includes/additem.js.inc
koha-tmpl/intranet-tmpl/prog/en/js/additem.js