]> git.koha-community.org Git - koha.git/commit
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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 15 Aug 2013 18:08:54 +0000 (15:08 -0300)
commitccd824532156eff6a97135a4e8cc766f3d7df894
tree9a3646ad5e7c4e8b35643fac9ec8e48f3d996105
parent21454708cb4212dd6615d15a82c134c1f2fa43f4
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>
(cherry picked from commit b7305e4876e6d961e8325155d679b1312975e74d)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/additem.js.inc
koha-tmpl/intranet-tmpl/prog/en/js/additem.js