Owen Leonard
b7305e4876
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>
12 lines
484 B
PHP
12 lines
484 B
PHP
<script type="text/javascript">
|
|
//<![CDATA[
|
|
var MSG_ADDITEM_JS_ADDITEM = _("Add item");
|
|
var MSG_ADDITEM_JS_UPDATEITEM = _("Update item");
|
|
var MSG_ADDITEM_JS_EDIT = _("Edit");
|
|
var MSG_ADDITEM_JS_DELETE = _("Delete");
|
|
var MSG_ADDITEM_JS_CLEAR = _("Clear");
|
|
var MSG_ADDITEM_JS_CANT_RECEIVE_MORE_ITEMS = _("You can't receive any more items");
|
|
var MSG_ADDITEM_JS_IS_DUPLICATE = _("is duplicated");
|
|
var MSG_ADDITEM_JS_ALREADY_EXISTS_IN_DB = _("already exists in database");
|
|
//]]>
|
|
</script>
|