From d01c2fcf483a53c5ac3362c8dcf73579d20410fc Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 7 Jun 2010 05:00:16 +0000 Subject: [PATCH] Fix up acq Dojo NLS file to be strictly JSON compliant simplejson chokes on non-compliant JSON: * Strings must be delimited in double-quotes * Joining strings with + is not allowed git-svn-id: svn://svn.open-ils.org/ILS/trunk@16604 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/acq/nls/acq.js | 157 +++++++++++++--------------- 1 file changed, 75 insertions(+), 82 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/acq/nls/acq.js b/Open-ILS/web/js/dojo/openils/acq/nls/acq.js index 6f877b2a60..a308ab15bd 100644 --- a/Open-ILS/web/js/dojo/openils/acq/nls/acq.js +++ b/Open-ILS/web/js/dojo/openils/acq/nls/acq.js @@ -1,85 +1,78 @@ { - 'CREATE_PO_ASSETS_CONFIRM' : "This will create bibliographic, call number, and copy records for this purchase order in the ILS.\n\nContinue?", - 'ROLLBACK_PO_RECEIVE_CONFIRM' : "This will rollback receipt of all copies for this purchase order.\n\nContinue?", - 'XUL_RECORD_DETAIL_PAGE' : 'Record Details', - 'DELETE_LI_COPIES_CONFIRM' : 'This will delete the last ${0} copies in the table. Proceed?', - 'NO_PO_RESULTS': "No results", - 'PO_HEADING_ERROR' : "Unexpected problem building virtual combined PO", - 'CONFIRM_SPLIT_PO': "Are you sure you want to split this purchase order into\none purchase order for every constituent line item?", - 'DFA_NOT_ALL': "Could not record all of your applications of distribution forumulas.", - 'APPLY': "Apply", - 'RESET_FORMULAE': "Reset Formulas", - 'OUT_OF_COPIES': "You have applied distribution formulas to every copy.", - 'ONE_LI_ATTR_SEARCH_AT_A_TIME': "You cannot both type in an attribute value search and search for an uploaded file of terms at the same time.", - 'LI_ATTR_SEARCH_CHOOSE_FILE': "Select file with search terms", - 'LI_ATTR_SEARCH_TOO_LARGE': "That file is too large for this operation.", - 'SELECT_AN_LI_ATTRIBUTE': "You must select an LI attribute.", - 'NO_RESULTS': "No results.", - 'EXPORT_SAVE_DIALOG_TITLE': "Save field values to a file", - 'EXPORT_SHORT_LIST': "Not all of the selected items had the attribute '${0}'.\nChoose OK to save those values that could be found.", - 'EXPORT_EMPTY_LIST': "No values for attribute '${0}' found.", - 'UNRECEIVE_LI': "Are you sure you want to mark this lineitem as UN-received?", + "CREATE_PO_ASSETS_CONFIRM" : "This will create bibliographic, call number, and copy records for this purchase order in the ILS.\n\nContinue?", + "ROLLBACK_PO_RECEIVE_CONFIRM" : "This will rollback receipt of all copies for this purchase order.\n\nContinue?", + "XUL_RECORD_DETAIL_PAGE" : "Record Details", + "DELETE_LI_COPIES_CONFIRM" : "This will delete the last ${0} copies in the table. Proceed?", + "NO_PO_RESULTS" : "No results", + "PO_HEADING_ERROR" : "Unexpected problem building virtual combined PO", + "CONFIRM_SPLIT_PO" : "Are you sure you want to split this purchase order into\none purchase order for every constituent line item?", + "DFA_NOT_ALL" : "Could not record all of your applications of distribution forumulas.", + "APPLY" : "Apply", + "RESET_FORMULAE" : "Reset Formulas", + "OUT_OF_COPIES" : "You have applied distribution formulas to every copy.", + "ONE_LI_ATTR_SEARCH_AT_A_TIME" : "You cannot both type in an attribute value search and search for an uploaded file of terms at the same time.", + "LI_ATTR_SEARCH_CHOOSE_FILE" : "Select file with search terms", + "LI_ATTR_SEARCH_TOO_LARGE" : "That file is too large for this operation.", + "SELECT_AN_LI_ATTRIBUTE" : "You must select an LI attribute.", + "NO_RESULTS" : "No results.", + "EXPORT_SAVE_DIALOG_TITLE" : "Save field values to a file", + "EXPORT_SHORT_LIST" : "Not all of the selected items had the attribute '${0}'.\nChoose OK to save those values that could be found.", + "EXPORT_EMPTY_LIST" : "No values for attribute '${0}' found.", + "UNRECEIVE_LI" : "Are you sure you want to mark this lineitem as UN-received?", - 'UNRECEIVE_LID': "Are you sure you want to mark this copy as UN-received?", - 'CONFIRM_LI_ALERT': "An alert has been placed on the lineitem titled,\n\"${0}\":\n\n${1}\n${2}\n${3}\nChoose OK if you wish to acknowledge this alert.", - 'ALERT_UNSELECTED': "You must choose an alert code.", - 'DFA_TIP': "Applied by: ${0}
When: ${1}", - 'ITS_YOU': "You", - 'JUST_NOW': "Just now", - 'EXPLAIN_DFA_MGMT': "Remove record of this distribution formula usage?", - 'VENDOR_PUBLIC': "VENDOR PUBLIC", - 'PO_CANCEL_CONFIRM': "Are you SURE you want to cancel this purchase order?", - 'LI_CANCEL_CONFIRM': "Are you SURE you want to cancel this line item?", - 'LID_CANCEL_CONFIRM': "Are you SURE you want to cancel this copy?", - 'UR_CANCEL_CONFIRM': "Are you SURE you want to cancel this user request?", - 'CANCEL_REASON': "Cancel reason", - 'CANCEL': "Cancel", - 'YES': "Yes", - 'NO' : "No", - 'VENDOR_SAYS_PREPAY_NOT_NEEDED': "The selected vendor does not necessarily require prepayment, according\nto records. Require prepayment on this PO anyway?", - 'VENDOR_SAYS_PREPAY_NEEDED': "The selected vendor requires prepayment, according to records.\nProceed anyway without required prepayment on this PO?", - 'PREPAYMENT_REQUIRED_REMINDER': "This PO requires prepayment. Are you certain you're ready to activate it?", - 'LI_FORMAT_ERROR': "Unexpected error retrieving formatted lineitem information.", - 'FUND_NOT_YET_LOADED': "Fund not yet loaded. Try coming back to this display later.", - 'CONFIRM_DELETE_MAPPING': "Are you sure you want to remove this tag from this fund?", - 'COULD_NOT_CREATE_MAPPING': "Error tagging fund.", - 'COULD_NOT_DELETE_MAPPING': "Error removing tag from fund.", - 'FUND_LIST_ROLLOVER_SUMMARY' : 'Fund Propagation & Rollover Summary for Fiscal Year ${0}', - 'FUND_LIST_ROLLOVER_SUMMARY_FUNDS' : '${1} funds propagated for fiscal year ${0} for the selected locations', - 'FUND_LIST_ROLLOVER_SUMMARY_ROLLOVER_AMOUNT' : '$${1} unspent money rolled over to fiscal year ${0} for the selected locations', - 'FUND_XFER_SAME_SOURCE_AND_DEST': "Cannot transfer. The source and destination funds are the same.", - 'FUND_XFER_CONFIRM': "Are you sure you're ready to commit this transfer?", - 'PO_CHECKING': "[One moment...]", - 'PO_COULD_ACTIVATE' : "Yes.", - 'PO_WARNING_NO_BLOCK_ACTIVATION': "Yes; fund ${0} (${1}) would be encumbered beyond its warning level.", - 'PO_STOP_BLOCKS_ACTIVATION': "No; fund ${0} (${1}) would be encumbered beyond its stop level.", - 'PO_FUND_WARNING_CONFIRM': "Are you sure? Did you see the warning about over-encumbering a fund?", - 'CONFIRM_FUNDS_AT_STOP': "One or more of the selected funds has a balance below its stop level.\nYou may not be able to activate purchase orders incorporating these copies.\nContinue?", - 'CONFIRM_FUNDS_AT_WARNING': "One or more of the selected funds has a balance below its warning level.\nContinue?", - 'INVOICE_ITEM_DETAILS' : "${0}
${1}
${2}.
Estimated Price: $${3}.
Lineitem ID: ${4}
PO: ${5}
Order Date: ${6}", - 'INVOICE_CONFIRM_ITEM_DELETE' : "Remove this $${0} '${1}' charge from the invoice?", - 'INVOICE_CONFIRM_ENTRY_DETACH' : "Remove $${0} charge for item '${1}, ${2} [${3}] from the invoice?", - 'LINEITEM_SUMMARY' : "
${0}, by ${1} (${2})
" + - "
" + - "${3} Ordered, ${4} Received, ${7} Invoiced, ${8} Claimed, ${9} Cancelled
" + - "
Estimated $${6}, Encumbered $${16}, Paid $${17}
" + - "
" + - "PO #${13} ${18}" + - "${15}
", - 'INVOICE_CONFIRM_PRORATE' : "Prorate charges?\n\nAny subsequent changes to the invoice that would affect prorated amounts should be resolved manually.", - 'INVOICE_EXTRA_COPIES' : "You are attempting to invoice ${0} more copies than originally ordered.

To add these items to the original order, " + - "select a fund and choose 'Add New Items' below.
After saving the invoice, you may finish editing and importing the new copies from the lineitem details page.", - 'INVOICE_ITEM_PO_DETAILS' : "${0}
PO #${3} ${4}
Total Estimated Cost: $${5}", - 'UNNAMED': "Unnamed", - 'NO_FIND_INVOICE': "Could not find that invoice.\nNote that the Invoice # field is case-sensitive.", - 'NO_LI_TO_CLAIM': "You have not selected any lineitems to claim.", - 'NO_LID_TO_CLAIM': "You have not selected any lineitem details to claim.", - 'CHANGE_CLAIM_POLICY': "Change claim policy", - 'CANCELED': "Canceled", - 'RECVD': "Recv'd", - 'NOT_RECVD': "Not recv'd", - 'PRINT': "Print", - 'INVOICES': "Invoices", - 'NUM_CLAIMS_EXISTING': "Claims (${0} existing)", - 'LOAD_TERMS_FIRST': "You can't retrieve records until you've loaded a CSV file\nwith bibliographic IDs in the first column." + "UNRECEIVE_LID" : "Are you sure you want to mark this copy as UN-received?", + "CONFIRM_LI_ALERT" : "An alert has been placed on the lineitem titled,\n\"${0}\":\n\n${1}\n${2}\n${3}\nChoose OK if you wish to acknowledge this alert.", + "ALERT_UNSELECTED" : "You must choose an alert code.", + "DFA_TIP" : "Applied by: ${0}
When: ${1}", + "ITS_YOU" : "You", + "JUST_NOW" : "Just now", + "EXPLAIN_DFA_MGMT" : "Remove record of this distribution formula usage?", + "VENDOR_PUBLIC" : "VENDOR PUBLIC", + "PO_CANCEL_CONFIRM" : "Are you SURE you want to cancel this purchase order?", + "LI_CANCEL_CONFIRM" : "Are you SURE you want to cancel this line item?", + "LID_CANCEL_CONFIRM" : "Are you SURE you want to cancel this copy?", + "UR_CANCEL_CONFIRM" : "Are you SURE you want to cancel this user request?", + "CANCEL_REASON" : "Cancel reason", + "CANCEL" : "Cancel", + "YES" : "Yes", + "NO" : "No", + "VENDOR_SAYS_PREPAY_NOT_NEEDED" : "The selected vendor does not necessarily require prepayment, according\nto records. Require prepayment on this PO anyway?", + "VENDOR_SAYS_PREPAY_NEEDED" : "The selected vendor requires prepayment, according to records.\nProceed anyway without required prepayment on this PO?", + "PREPAYMENT_REQUIRED_REMINDER" : "This PO requires prepayment. Are you certain you're ready to activate it?", + "LI_FORMAT_ERROR" : "Unexpected error retrieving formatted lineitem information.", + "FUND_NOT_YET_LOADED" : "Fund not yet loaded. Try coming back to this display later.", + "CONFIRM_DELETE_MAPPING" : "Are you sure you want to remove this tag from this fund?", + "COULD_NOT_CREATE_MAPPING" : "Error tagging fund.", + "COULD_NOT_DELETE_MAPPING" : "Error removing tag from fund.", + "FUND_LIST_ROLLOVER_SUMMARY" : "Fund Propagation & Rollover Summary for Fiscal Year ${0}", + "FUND_LIST_ROLLOVER_SUMMARY_FUNDS" : "${1} funds propagated for fiscal year ${0} for the selected locations", + "FUND_LIST_ROLLOVER_SUMMARY_ROLLOVER_AMOUNT" : "$${1} unspent money rolled over to fiscal year ${0} for the selected locations", + "FUND_XFER_SAME_SOURCE_AND_DEST" : "Cannot transfer. The source and destination funds are the same.", + "FUND_XFER_CONFIRM" : "Are you sure you're ready to commit this transfer?", + "PO_CHECKING" : "[One moment...]", + "PO_COULD_ACTIVATE" : "Yes.", + "PO_WARNING_NO_BLOCK_ACTIVATION" : "Yes; fund ${0} (${1}) would be encumbered beyond its warning level.", + "PO_STOP_BLOCKS_ACTIVATION" : "No; fund ${0} (${1}) would be encumbered beyond its stop level.", + "PO_FUND_WARNING_CONFIRM" : "Are you sure? Did you see the warning about over-encumbering a fund?", + "CONFIRM_FUNDS_AT_STOP" : "One or more of the selected funds has a balance below its stop level.\nYou may not be able to activate purchase orders incorporating these copies.\nContinue?", + "CONFIRM_FUNDS_AT_WARNING" : "One or more of the selected funds has a balance below its warning level.\nContinue?", + "INVOICE_ITEM_DETAILS" : "${0}
${1}
${2}.
Estimated Price: $${3}.
Lineitem ID: ${4}
PO: ${5}
Order Date: ${6}", + "INVOICE_CONFIRM_ITEM_DELETE" : "Remove this $${0} '${1}' charge from the invoice?", + "INVOICE_CONFIRM_ENTRY_DETACH" : "Remove $${0} charge for item '${1}, ${2} [${3}] from the invoice?", + "LINEITEM_SUMMARY" : "
${0}, by ${1} (${2})
\n
\n${3} Ordered, ${4} Received, ${7} Invoiced, ${8} Claimed, ${9} Cancelled
\n
Estimated $${6}, Encumbered $${16}, Paid $${17}
\n
\nPO #${13} ${18}\n${15}
", + "INVOICE_CONFIRM_PRORATE" : "Prorate charges?\n\nAny subsequent changes to the invoice that would affect prorated amounts should be resolved manually.", + "INVOICE_EXTRA_COPIES" : "You are attempting to invoice ${0} more copies than originally ordered.

To add these items to the original order, select a fund and choose 'Add New Items' below.
After saving the invoice, you may finish editing and importing the new copies from the lineitem details page.", + "INVOICE_ITEM_PO_DETAILS" : "${0}
PO #${3} ${4}
Total Estimated Cost: $${5}", + "UNNAMED" : "Unnamed", + "NO_FIND_INVOICE" : "Could not find that invoice.\nNote that the Invoice # field is case-sensitive.", + "NO_LI_TO_CLAIM" : "You have not selected any lineitems to claim.", + "NO_LID_TO_CLAIM" : "You have not selected any lineitem details to claim.", + "CHANGE_CLAIM_POLICY" : "Change claim policy", + "CANCELED" : "Canceled", + "RECVD" : "Recv'd", + "NOT_RECVD" : "Not recv'd", + "PRINT" : "Print", + "INVOICES" : "Invoices", + "NUM_CLAIMS_EXISTING" : "Claims (${0} existing)", + "LOAD_TERMS_FIRST" : "You can't retrieve records until you've loaded a CSV file\nwith bibliographic IDs in the first column." } -- 2.11.0