Convert a few more hardcoded strings to i18n
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 6 Jul 2008 16:20:05 +0000 (16:20 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 6 Jul 2008 16:20:05 +0000 (16:20 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9971 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
Open-ILS/xul/staff_client/server/patron/display.js

index fba859b..e4d1fd1 100644 (file)
@@ -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
index ea161ba..1bfbbfd 100644 (file)
@@ -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) {