From 1a650a7e7a4000996a0596391b55c275f6cf4075 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 7 Jun 2010 05:36:47 +0000 Subject: [PATCH] More cleanup of Dojo JSON files * Double-quote all strings - no single-quoting or barewords * Don't escape dollar signs * JSON doesn't allow expressions like string continuations ("" + "") reservations.js has some remaining issues, looks like functions were defined for what should be simple string substitutions. dojo.string.substitute() will solve this problem, I believe, with ${0}, ${1}, etc tokens for substitution git-svn-id: svn://svn.open-ils.org/ILS/trunk@16606 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/User/nls/User.js | 2 +- .../web/js/dojo/openils/actor/nls/register.js | 12 +- .../js/dojo/openils/booking/nls/capture.js | 39 +++--- .../openils/booking/nls/pickup_and_return.js | 61 +++++---- .../js/dojo/openils/booking/nls/pull_list.js | 34 ++--- .../dojo/openils/booking/nls/reservation.js | 121 ++++++++---------- .../web/js/dojo/openils/circ/nls/selfcheck.js | 42 +++--- .../openils/widget/nls/AutoFieldWidget.js | 6 +- .../openils/widget/nls/TranslatorPopup.js | 16 +-- .../dojo/openils/widget/nls/XULTermLoader.js | 10 +- .../web/js/ui/default/actor/user/register.js | 2 +- 11 files changed, 160 insertions(+), 185 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/User/nls/User.js b/Open-ILS/web/js/dojo/openils/User/nls/User.js index c2041cffd0..cf2ae96d73 100644 --- a/Open-ILS/web/js/dojo/openils/User/nls/User.js +++ b/Open-ILS/web/js/dojo/openils/User/nls/User.js @@ -1,3 +1,3 @@ { - 'FULL_NAME': "${0}, ${3} ${1} ${2} ${4}" + "FULL_NAME": "${0}, ${3} ${1} ${2} ${4}" } diff --git a/Open-ILS/web/js/dojo/openils/actor/nls/register.js b/Open-ILS/web/js/dojo/openils/actor/nls/register.js index 147d1034ca..6de3e7e095 100644 --- a/Open-ILS/web/js/dojo/openils/actor/nls/register.js +++ b/Open-ILS/web/js/dojo/openils/actor/nls/register.js @@ -1,8 +1,8 @@ { - DUPE_PATRON_NAME : 'Found ${0} patron(s) with the same name', - DUPE_PATRON_EMAIL : 'Found ${0} patron(s) with the same email address', - DUPE_PATRON_IDENT : 'Found ${0} patron(s) with the same identification', - DUPE_PATRON_PHONE : 'Found ${0} patron(s) with the same phone number', - DUPE_PATRON_ADDR : 'Found ${0} patron(s) with the same address', - REPLACED_ADDRESS : '
Replaces address ${0}
${1} ${2}
${3}, ${4} ${5}
' + "DUPE_PATRON_NAME" : "Found ${0} patron(s) with the same name", + "DUPE_PATRON_EMAIL" : "Found ${0} patron(s) with the same email address", + "DUPE_PATRON_IDENT" : "Found ${0} patron(s) with the same identification", + "DUPE_PATRON_PHONE" : "Found ${0} patron(s) with the same phone number", + "DUPE_PATRON_ADDR" : "Found ${0} patron(s) with the same address", + "REPLACED_ADDRESS" : "
Replaces address ${0}
${1} ${2}
${3}, ${4} ${5}
" } diff --git a/Open-ILS/web/js/dojo/openils/booking/nls/capture.js b/Open-ILS/web/js/dojo/openils/booking/nls/capture.js index 7e78e11dee..e59b8c1965 100644 --- a/Open-ILS/web/js/dojo/openils/booking/nls/capture.js +++ b/Open-ILS/web/js/dojo/openils/booking/nls/capture.js @@ -1,24 +1,21 @@ { - 'FAILURE': "Capture failed", - 'SUCCESS': "Capture succeeded", - 'UNKNOWN_PROBLEM': "An unknown problem occurred during capture attempt.", - 'CAPTURED_NOTHING': "Didn't capture anything.", - 'NO_PAYLOAD': - "We did not receive further information from the server about this" + - "attempt to capture.", - 'HERES_WHAT_WE_KNOW': - "The following information is available about the failed capture:", - 'CAPTURE_INFO': "Capture Information", - 'CAPTURE_BRESV_DATES': "Reservation time:", - 'CAPTURE_BRESV_BRSRC': "Resource barcode:", - 'CAPTURE_BRESV_PICKUP_LIB': "Pickup library:", - 'CAPTURE_BRESV_PATRON_BARCODE': "Patron barcode:", - 'CAPTURE_CAUSES_TRANSIT': "This item is now in transit!", - 'CAPTURE_TRANSIT_SOURCE': "From:", - 'CAPTURE_TRANSIT_DEST': "To:", + "FAILURE": "Capture failed", + "SUCCESS": "Capture succeeded", + "UNKNOWN_PROBLEM": "An unknown problem occurred during capture attempt.", + "CAPTURED_NOTHING": "Didn't capture anything.", + "NO_PAYLOAD": "We did not receive further information from the server about this attempt to capture.", + "HERES_WHAT_WE_KNOW": "The following information is available about the failed capture:", + "CAPTURE_INFO": "Capture Information", + "CAPTURE_BRESV_DATES": "Reservation time:", + "CAPTURE_BRESV_BRSRC": "Resource barcode:", + "CAPTURE_BRESV_PICKUP_LIB": "Pickup library:", + "CAPTURE_BRESV_PATRON_BARCODE": "Patron barcode:", + "CAPTURE_CAUSES_TRANSIT": "This item is now in transit!", + "CAPTURE_TRANSIT_SOURCE": "From:", + "CAPTURE_TRANSIT_DEST": "To:", - 'AUTO_capture_heading': "Capture Reserved Resources", - 'AUTO_resource_barcode': "Enter barcode:", - 'AUTO_pickup_lib_selector': "Pickup library:", - 'AUTO_ATTR_VALUE_capture': "Capture" + "AUTO_capture_heading": "Capture Reserved Resources", + "AUTO_resource_barcode": "Enter barcode:", + "AUTO_pickup_lib_selector": "Pickup library:", + "AUTO_ATTR_VALUE_capture": "Capture" } diff --git a/Open-ILS/web/js/dojo/openils/booking/nls/pickup_and_return.js b/Open-ILS/web/js/dojo/openils/booking/nls/pickup_and_return.js index 6d786e3673..1972f02c36 100644 --- a/Open-ILS/web/js/dojo/openils/booking/nls/pickup_and_return.js +++ b/Open-ILS/web/js/dojo/openils/booking/nls/pickup_and_return.js @@ -1,38 +1,35 @@ { - 'NO_PATRON_BARCODE': "Please enter a patron barcode.", - 'RESERVATIONS_NO_RESPONSE': + "NO_PATRON_BARCODE": "Please enter a patron barcode.", + "RESERVATIONS_NO_RESPONSE": "No response from server when asking for reservations.", - 'RESERVATIONS_ERROR': + "RESERVATIONS_ERROR": "Error communicating with server (asking for reservations):", - 'PICKUP_NO_RESPONSE': "No response from server when attempting pickup.", - 'PICKUP_ERROR': "Error communicating with server (attempting pickup):", - 'RETURN_NO_RESPONSE': "No response from server when attempting return.", - 'RETURN_ERROR': "Error communicating with server (attempting return):", - 'RETURN_SUCCESS': "Return successful.", - 'SELECT_SOMETHING': "You have not selected any reservations.", - 'NO_SUCH_RETURNABLE_RESOURCE': "No such returnable resource.", - 'RETURNABLE_RESOURCE_ERROR': "Error looking up returnable resource:", - 'NOTICE_CHANGE_OF_PATRON': - "Note that the resource scanned was out on reservation to different\n" + - "patron than the last resource you scanned. If this is not\n" + - "expected, stop to examine outstanding reservations for your patron\n" + - "or on the resource.", + "PICKUP_NO_RESPONSE": "No response from server when attempting pickup.", + "PICKUP_ERROR": "Error communicating with server (attempting pickup):", + "RETURN_NO_RESPONSE": "No response from server when attempting return.", + "RETURN_ERROR": "Error communicating with server (attempting return):", + "RETURN_SUCCESS": "Return successful.", + "SELECT_SOMETHING": "You have not selected any reservations.", + "NO_SUCH_RETURNABLE_RESOURCE": "No such returnable resource.", + "RETURNABLE_RESOURCE_ERROR": "Error looking up returnable resource:", + "NOTICE_CHANGE_OF_PATRON": + "Note that the resource scanned was out on reservation to different\npatron than the last resource you scanned. If this is not\nexpected, stop to examine outstanding reservations for your patron\nor on the resource.", - 'AUTO_h1': "Reservations Pickup", - 'AUTO_return_h1': "Reservations Return", - 'AUTO_patron_barcode': "Enter patron barcode:", - 'AUTO_barcode_type': "Return by barcode of", - 'AUTO_in_bresv': "Patron has returned these resources today:", - 'AUTO_ready_bresv': "Patron has these reservations ready for pickup:", - 'AUTO_out_bresv': "Patron currently has these reservations out:", - 'AUTO_no_ready_bresv': + "AUTO_h1": "Reservations Pickup", + "AUTO_return_h1": "Reservations Return", + "AUTO_patron_barcode": "Enter patron barcode:", + "AUTO_barcode_type": "Return by barcode of", + "AUTO_in_bresv": "Patron has returned these resources today:", + "AUTO_ready_bresv": "Patron has these reservations ready for pickup:", + "AUTO_out_bresv": "Patron currently has these reservations out:", + "AUTO_no_ready_bresv": "Patron has no reservations ready for pickup at this time.", - 'AUTO_no_out_bresv': "Patron has no more reservations out at this time.", - 'AUTO_no_in_bresv': "Patron has not returned any resources today.", - 'AUTO_patron': "Patron", - 'AUTO_resource': "Resource", - 'AUTO_ATTR_VALUE_go': "Go", - 'AUTO_ATTR_VALUE_reset': "Clear / New Patron", - 'AUTO_ATTR_VALUE_pickup': "Pick up", - 'AUTO_ATTR_VALUE_return': "Return" + "AUTO_no_out_bresv": "Patron has no more reservations out at this time.", + "AUTO_no_in_bresv": "Patron has not returned any resources today.", + "AUTO_patron": "Patron", + "AUTO_resource": "Resource", + "AUTO_ATTR_VALUE_go": "Go", + "AUTO_ATTR_VALUE_reset": "Clear / New Patron", + "AUTO_ATTR_VALUE_pickup": "Pick up", + "AUTO_ATTR_VALUE_return": "Return" } diff --git a/Open-ILS/web/js/dojo/openils/booking/nls/pull_list.js b/Open-ILS/web/js/dojo/openils/booking/nls/pull_list.js index 30ae8ec804..e82700116c 100644 --- a/Open-ILS/web/js/dojo/openils/booking/nls/pull_list.js +++ b/Open-ILS/web/js/dojo/openils/booking/nls/pull_list.js @@ -1,20 +1,20 @@ { - 'PULL_LIST_NO_RESPONSE': "No response from server trying to get pull list!", - 'PULL_LIST_ERROR': "Error trying to fetch pull list: ", - 'COPY_LOOKUP_NO_RESPONSE': "No response looking up copies by barcode", - 'COPY_LOOKUP_ERROR': "Error looking up copies by barcode: ", - 'COPY_MISSING': "Unexpected error: No information for copy: ", + "PULL_LIST_NO_RESPONSE": "No response from server trying to get pull list!", + "PULL_LIST_ERROR": "Error trying to fetch pull list: ", + "COPY_LOOKUP_NO_RESPONSE": "No response looking up copies by barcode", + "COPY_LOOKUP_ERROR": "Error looking up copies by barcode: ", + "COPY_MISSING": "Unexpected error: No information for copy: ", - 'AUTO_no_results': "No results", - 'AUTO_owning_lib_selector': "See pull list for library:", - 'AUTO_pull_list_title': "Booking Pull List", - 'AUTO_interval_in_days': "Generate list for this many days hence: ", - 'AUTO_ATTR_VALUE_fetch': "Fetch", - 'AUTO_th_title_or_name': "Title or name", - 'AUTO_th_barcode': "Barcode", - 'AUTO_th_call_number': "Call number", - 'AUTO_th_copy_location': "Copy location", - 'AUTO_th_copy_number': "Copy number", - 'AUTO_th_resv_details': "Reservation details", - 'AUTO_ATTR_VALUE_print': "Print", + "AUTO_no_results": "No results", + "AUTO_owning_lib_selector": "See pull list for library:", + "AUTO_pull_list_title": "Booking Pull List", + "AUTO_interval_in_days": "Generate list for this many days hence: ", + "AUTO_ATTR_VALUE_fetch": "Fetch", + "AUTO_th_title_or_name": "Title or name", + "AUTO_th_barcode": "Barcode", + "AUTO_th_call_number": "Call number", + "AUTO_th_copy_location": "Copy location", + "AUTO_th_copy_number": "Copy number", + "AUTO_th_resv_details": "Reservation details", + "AUTO_ATTR_VALUE_print": "Print" } diff --git a/Open-ILS/web/js/dojo/openils/booking/nls/reservation.js b/Open-ILS/web/js/dojo/openils/booking/nls/reservation.js index 76cf080732..f1f6a07e1e 100644 --- a/Open-ILS/web/js/dojo/openils/booking/nls/reservation.js +++ b/Open-ILS/web/js/dojo/openils/booking/nls/reservation.js @@ -1,82 +1,63 @@ { - 'NO_BRT_RESULTS': "There are no bookable resource types registered.", - 'NO_TARG_DIV': "Could not find target div", - 'NO_BRA_RESULTS': "Couldn't retrieve booking resource attributes.", - 'SELECT_A_BRSRC_THEN': "Select a resource from the big list above.", - 'CREATE_BRESV_LOCAL_ERROR': "Exception trying to create reservation: ", - 'CREATE_BRESV_SERVER_ERROR': "Server error trying to create reservation: ", - 'CREATE_BRESV_SERVER_NO_RESPONSE': - "No response from server after trying to create reservation.", - /* FIXME: Users aren't likely to be able to do anything with the following - * message. Figure out a way to do something more helpful. - */ - 'CREATE_BRESV_OK_MISSING_TARGET': function(n, m) { + "NO_BRT_RESULTS": "There are no bookable resource types registered.", + "NO_TARG_DIV": "Could not find target div", + "NO_BRA_RESULTS": "Couldn't retrieve booking resource attributes.", + "SELECT_A_BRSRC_THEN": "Select a resource from the big list above.", + "CREATE_BRESV_LOCAL_ERROR": "Exception trying to create reservation: ", + "CREATE_BRESV_SERVER_ERROR": "Server error trying to create reservation: ", + "CREATE_BRESV_SERVER_NO_RESPONSE": "No response from server after trying to create reservation.", + "CREATE_BRESV_OK_MISSING_TARGET": function(n, m) { return "Created " + n + " reservation(s), but " + m + " of these " + "couldn't target any resources.\n\n" + "This means that it won't be possible to fulfill some of these\n" + "reservations until a suitable resource becomes available."; }, - 'CREATE_BRESV_OK': function(n) { + "CREATE_BRESV_OK": function(n) { return "Created " + n + " reservation" + (n == 1 ? "" : "s") + "."; }, - 'WHERES_THE_BARCODE': "Enter a patron's barcode to make a reservation.", - 'ACTOR_CARD_NOT_FOUND': "Patron barcode not found. Please try again.", - 'GET_BRESV_LIST_ERR': "Error while retrieving reservation list: ", - 'GET_BRESV_LIST_NO_RESULT': - "No results from server retrieving reservation list.", - 'OUTSTANDING_BRESV': "Outstanding reservations for patron", - 'UNTARGETED': "None targeted", - 'GET_PATRON_NO_RESULT': - "No server response after attempting to look up patron by barcode.", - 'HERE_ARE_EXISTING_BRESV': "Existing reservations for", - 'NO_EXISTING_BRESV': "This user has no existing reservations at this time.", - 'NO_USABLE_BRSRC': - "No reservable resources. Adjust start and end time\n" + - "until a resource is available for reservation.", - 'CXL_BRESV_SUCCESS': function(n) { + "WHERES_THE_BARCODE": "Enter a patron's barcode to make a reservation.", + "ACTOR_CARD_NOT_FOUND": "Patron barcode not found. Please try again.", + "GET_BRESV_LIST_ERR": "Error while retrieving reservation list: ", + "GET_BRESV_LIST_NO_RESULT": "No results from server retrieving reservation list.", + "OUTSTANDING_BRESV": "Outstanding reservations for patron", + "UNTARGETED": "None targeted", + "GET_PATRON_NO_RESULT": "No server response after attempting to look up patron by barcode.", + "HERE_ARE_EXISTING_BRESV": "Existing reservations for", + "NO_EXISTING_BRESV": "This user has no existing reservations at this time.", + "NO_USABLE_BRSRC": "No reservable resources. Adjust start and end time\nuntil a resource is available for reservation.", + "CXL_BRESV_SUCCESS": function(n) { return ("Canceled " + n + " reservation" + (n == 1 ? "" : "s") + "."); }, - 'CXL_BRESV_FAILURE': "Error canceling reservations; server silent.", - 'CXL_BRESV_FAILURE2': "Error canceling reservations:\n", - 'CXL_BRESV_SELECT_SOMETHING': - "You have not selected any reservations to cancel.", - 'NEED_EXACTLY_ONE_BRT_PASSED_IN': - "Can't book multiple resource types at once", - 'COULD_NOT_RETRIEVE_BRT_PASSED_IN': - "Error retrieving booking resource type", - 'INVALID_TS_RANGE': - "You must choose a valid start and end time for the reservation.", - 'BRSRC_NOT_FOUND': "Could not locate that resource.", - 'BRSRC_RETRIVE_ERROR': "Error retrieving resource: ", - 'ON_FLY_NO_RESPONSE': - "No response from server attempting to make item a bookable resource.", - 'ON_FLY_ERROR': - "Error attempting to make item a bookable resource:", - 'ANY': "ANY", + "CXL_BRESV_FAILURE": "Error canceling reservations; server silent.", + "CXL_BRESV_FAILURE2": "Error canceling reservations:\n", + "CXL_BRESV_SELECT_SOMETHING": "You have not selected any reservations to cancel.", + "NEED_EXACTLY_ONE_BRT_PASSED_IN": "Can't book multiple resource types at once", + "COULD_NOT_RETRIEVE_BRT_PASSED_IN": "Error retrieving booking resource type", + "INVALID_TS_RANGE": "You must choose a valid start and end time for the reservation.", + "BRSRC_NOT_FOUND": "Could not locate that resource.", + "BRSRC_RETRIVE_ERROR": "Error retrieving resource: ", + "ON_FLY_NO_RESPONSE": "No response from server attempting to make item a bookable resource.", + "ON_FLY_ERROR": "Error attempting to make item a bookable resource:", + "ANY": "ANY", - 'AUTO_choose_a_brt': "Choose a Bookable Resource Type", - 'AUTO_i_need_this_resource': "I need this resource...", - 'AUTO_starting_at': "Between", - 'AUTO_ending_at': "and", - 'AUTO_with_these_attr': "With these attributes:", - 'AUTO_patron_barcode': "Reserve to patron barcode:", - 'AUTO_ATTR_VALUE_next': "Next", - 'AUTO_ATTR_VALUE_reserve_brsrc': "Reserve Selected", - 'AUTO_ATTR_VALUE_reserve_brt': "Reserve Any", - 'AUTO_ATTR_VALUE_button_edit_existing': "Edit selected", - 'AUTO_ATTR_VALUE_button_cancel_existing': "Cancel selcted", - 'AUTO_bresv_grid_type': "Type", - 'AUTO_bresv_grid_resource': "Resource", - 'AUTO_bresv_grid_start_time': "Start time", - 'AUTO_bresv_grid_end_time': "End time", - 'AUTO_brt_noncat_only': "Show only non-cataloged bookable resource types", - 'AUTO_arbitrary_resource': - "Enter the barcode of a cataloged, bookable resource:", - 'AUTO_explain_bookable': - "To reserve an item that is not yet registered as a bookable " + - "resource, find it in the catalog or under Display Item, and "+ - "select Make Item Bookable or Book Item Now there.", - 'AUTO_pickup_lib_selector': - "Choose the pickup library for this reservation:", - 'AUTO_or': '- Or -' + "AUTO_choose_a_brt": "Choose a Bookable Resource Type", + "AUTO_i_need_this_resource": "I need this resource...", + "AUTO_starting_at": "Between", + "AUTO_ending_at": "and", + "AUTO_with_these_attr": "With these attributes:", + "AUTO_patron_barcode": "Reserve to patron barcode:", + "AUTO_ATTR_VALUE_next": "Next", + "AUTO_ATTR_VALUE_reserve_brsrc": "Reserve Selected", + "AUTO_ATTR_VALUE_reserve_brt": "Reserve Any", + "AUTO_ATTR_VALUE_button_edit_existing": "Edit selected", + "AUTO_ATTR_VALUE_button_cancel_existing": "Cancel selcted", + "AUTO_bresv_grid_type": "Type", + "AUTO_bresv_grid_resource": "Resource", + "AUTO_bresv_grid_start_time": "Start time", + "AUTO_bresv_grid_end_time": "End time", + "AUTO_brt_noncat_only": "Show only non-cataloged bookable resource types", + "AUTO_arbitrary_resource": "Enter the barcode of a cataloged, bookable resource:", + "AUTO_explain_bookable": "To reserve an item that is not yet registered as a bookable resource, find it in the catalog or under Display Item, and select Make Item Bookable or Book Item Now there.", + "AUTO_pickup_lib_selector": "Choose the pickup library for this reservation:", + "AUTO_or": "- Or -" } diff --git a/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js b/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js index 67e278206d..63f67cbf6b 100644 --- a/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js +++ b/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js @@ -1,24 +1,24 @@ { - 'TOTAL_ITEMS_SESSION' : "Total items this session: ${0}.", - 'TOTAL_ITEMS_ACCOUNT' : "Total items on account: ${0}.", - 'HOLDS_READY_FOR_PICKUP' : "You have ${0} item(s) ready for pickup.", - 'TOTAL_HOLDS' : "You have ${0} total holds.", - 'TOTAL_FINES_ACCOUNT' : "Total fines on account: $${0}.", - 'HOLD_STATUS_READY' : 'Ready for pickup', - 'HOLD_STATUS_WAITING' : '#${0} in line with ${1} copies', - 'CHECKOUT_SUCCESS' : 'Checkout of item ${0} succeeded', - 'RENEW_SUCCESS' : 'Renewal of item ${0} succeeded', - 'ALREADY_OUT' : 'Item ${0} is already checked out', - 'OPEN_CIRCULATION_EXISTS' : 'Item ${0} is already checked out to another user', - 'GENERIC_CIRC_FAILURE' : 'Unable to check out item ${0}. Please see staff.', - 'LOGIN_FAILED' : 'Login for ${0} failed', - 'UNKNOWN_ERROR' : 'An unhandled exception occurred with error code ${0}', - 'MAX_RENEWALS' : 'No more renewals allowed for item ${0}', - 'ITEM_NOT_CATALOGED' : 'Item ${0} was not found in the system. Try re-scanning the item.', - 'WORKSTATION_REQUIRED' : 'A workstation is required to log in to selfcheck. You can set the workstation name with URL param "ws". \n\nWould you like to register a new workstation for this self-check interface?', - 'WORKSTATION_EXISTS' : 'This workstation has already been registered. Would you like to use it for this self-check station?', - 'CC_PAYABLE_BALANCE' : 'Total amount to pay: \$${0}', - 'TOTAL_FINES_SELECTED' : 'Selected total: \$${0}', - 'WELCOME_BANNER' : 'Welcome, ${0}' + "TOTAL_ITEMS_SESSION" : "Total items this session: ${0}.", + "TOTAL_ITEMS_ACCOUNT" : "Total items on account: ${0}.", + "HOLDS_READY_FOR_PICKUP" : "You have ${0} item(s) ready for pickup.", + "TOTAL_HOLDS" : "You have ${0} total holds.", + "TOTAL_FINES_ACCOUNT" : "Total fines on account: $${0}.", + "HOLD_STATUS_READY" : "Ready for pickup", + "HOLD_STATUS_WAITING" : "#${0} in line with ${1} copies", + "CHECKOUT_SUCCESS" : "Checkout of item ${0} succeeded", + "RENEW_SUCCESS" : "Renewal of item ${0} succeeded", + "ALREADY_OUT" : "Item ${0} is already checked out", + "OPEN_CIRCULATION_EXISTS" : "Item ${0} is already checked out to another user", + "GENERIC_CIRC_FAILURE" : "Unable to check out item ${0}. Please see staff.", + "LOGIN_FAILED" : "Login for ${0} failed", + "UNKNOWN_ERROR" : "An unhandled exception occurred with error code ${0}", + "MAX_RENEWALS" : "No more renewals allowed for item ${0}", + "ITEM_NOT_CATALOGED" : "Item ${0} was not found in the system. Try re-scanning the item.", + "WORKSTATION_REQUIRED" : "A workstation is required to log in to selfcheck. You can set the workstation name with URL param 'ws'. \n\nWould you like to register a new workstation for this self-check interface?", + "WORKSTATION_EXISTS" : "This workstation has already been registered. Would you like to use it for this self-check station?", + "CC_PAYABLE_BALANCE" : "Total amount to pay: $${0}", + "TOTAL_FINES_SELECTED" : "Selected total: $${0}", + "WELCOME_BANNER" : "Welcome, ${0}" } diff --git a/Open-ILS/web/js/dojo/openils/widget/nls/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/nls/AutoFieldWidget.js index 3fee288dbd..4d19f3419d 100644 --- a/Open-ILS/web/js/dojo/openils/widget/nls/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/nls/AutoFieldWidget.js @@ -1,5 +1,5 @@ { - 'TRUE' : 'True', - 'FALSE' : 'False', - 'UNSET' : 'Unset' + "TRUE" : "True", + "FALSE" : "False", + "UNSET" : "Unset" } diff --git a/Open-ILS/web/js/dojo/openils/widget/nls/TranslatorPopup.js b/Open-ILS/web/js/dojo/openils/widget/nls/TranslatorPopup.js index 7fc07a47bd..5b7102d67a 100644 --- a/Open-ILS/web/js/dojo/openils/widget/nls/TranslatorPopup.js +++ b/Open-ILS/web/js/dojo/openils/widget/nls/TranslatorPopup.js @@ -1,8 +1,8 @@ -({ - locale : 'Locale', - translation : 'Translation', - translate : 'Translate', - create : 'Create', - update : 'Update', - remove : 'Remove' -}) +{ + "locale" : "Locale", + "translation" : "Translation", + "translate" : "Translate", + "create" : "Create", + "update" : "Update", + "remove" : "Remove" +} diff --git a/Open-ILS/web/js/dojo/openils/widget/nls/XULTermLoader.js b/Open-ILS/web/js/dojo/openils/widget/nls/XULTermLoader.js index 71881a382a..ca264d925d 100644 --- a/Open-ILS/web/js/dojo/openils/widget/nls/XULTermLoader.js +++ b/Open-ILS/web/js/dojo/openils/widget/nls/XULTermLoader.js @@ -1,7 +1,7 @@ { - 'LABEL_TEXT': " term(s) loaded", - 'BUTTON_TEXT': "Load more terms", - 'TERM_LIMIT': "You have already loaded the maximum number of terms.", - 'TERM_LIMIT_SOME': "Could not load all terms from the file without exceeding maximum number of terms. Some data not included.", - 'CHOOSE_FILE': "Choose a file from which to read search terms." + "LABEL_TEXT": " term(s) loaded", + "BUTTON_TEXT": "Load more terms", + "TERM_LIMIT": "You have already loaded the maximum number of terms.", + "TERM_LIMIT_SOME": "Could not load all terms from the file without exceeding maximum number of terms. Some data not included.", + "CHOOSE_FILE": "Choose a file from which to read search terms." } diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index 5b4f1ff319..4964d291f1 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -23,7 +23,7 @@ var pcrud; var fmClasses = ['au', 'ac', 'aua', 'actsc', 'asv', 'asvq', 'asva']; var fieldDoc = {}; var statCats; -var statCatTempate; +var statCatTemplate; var surveys; var staff; var patron; -- 2.43.2