]> 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)
committerBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Fri, 13 Sep 2013 21:43:03 +0000 (18:43 -0300)
commitd5957dfe50e1cfac199c4355722ac7384d227fbf
tree89cd8760c9dd0c5409e0928c1edc4cd6f27a84d5
parent3dec7977189b7b8549128e4fec151b7a654d2a3a
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>
(cherry picked from commit ccd824532156eff6a97135a4e8cc766f3d7df894)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit ccd824532156eff6a97135a4e8cc766f3d7df894)
koha-tmpl/intranet-tmpl/prog/en/includes/additem.js.inc
koha-tmpl/intranet-tmpl/prog/en/js/additem.js