From: dbs Date: Sun, 6 Jul 2008 16:20:05 +0000 (+0000) Subject: Convert a few more hardcoded strings to i18n X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ed0842104854e80d93af4e0d70b76730fdde941a;p=Evergreen.git Convert a few more hardcoded strings to i18n git-svn-id: svn://svn.open-ils.org/ILS/trunk@9971 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties b/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties index fba859bc33..e4d1fd1fd3 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties @@ -51,6 +51,7 @@ staff.patron.bills.void_all_billings.void.confirm_message=Check here to confirm staff.patron.bills.void_all_billings.error_voiding_bills=Error voiding bills. staff.patron.bills.void_all_billings.billings_voided=Billings voided. staff.patron.bill_wizard.patron_bill_finish.billing_added=Billing added. +staff.patron.display.cmd_search_form.no_patron=No Patron Selected staff.patron.display.cmd_patron_edit.edit_search=Editor would like to search for: %1$s staff.patron.display.spawn_editor.editing_related_patron=Editing Related Patron staff.patron.display.init.retrieving_patron=Retrieving Patron... @@ -66,6 +67,7 @@ staff.patron.display.init.network_request.window_message=Press a navigation butt staff.patron.display.init.network_request.dump_error_message=Not re-displaying this alert message: %1$s staff.patron.display.init.network_request.error_showing_alert=Error showing patron alert and holds availability. staff.patron.display.render_search_form.patron_search=Patron Search +staff.patron.display.tab_name=Patron: staff.patron.hold_notices.tooltiptext=ID: %1$s Hold ID: %2$s Notifying Staff ID: %3$s staff.patron.hold_notices.new_notification_record=New Notification Record staff.patron.hold_notices.method=Method diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index ea161ba8e0..1bfbbfd5df 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -102,7 +102,7 @@ patron.display.prototype = { function(ev) { obj.controller.view.cmd_search_form.setAttribute('disabled','true'); obj.left_deck.node.selectedIndex = 0; - obj.controller.view.patron_name.setAttribute('value','No Patron Selected'); + obj.controller.view.patron_name.setAttribute('value', $("patronStrings").getString('staff.patron.display.cmd_search_form.no_patron')); removeCSSClass(document.documentElement,'PATRON_HAS_BILLS'); removeCSSClass(document.documentElement,'PATRON_HAS_OVERDUES'); removeCSSClass(document.documentElement,'PATRON_HAS_NOTES'); @@ -380,7 +380,8 @@ patron.display.prototype = { if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') { try { window.xulG.set_tab_name( - 'Patron: ' + patron.family_name() + ', ' + patron.first_given_name() + ' ' + $("patronStrings").getString('staff.patron.display.tab_name') + + ' ' + patron.family_name() + ', ' + patron.first_given_name() + ' ' + (patron.second_given_name() ? patron.second_given_name() : '' ) ); } catch(E) {