[open-ils-commits] r9971 - in trunk/Open-ILS/xul/staff_client/server: locale/en-US patron

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Jul 6 12:20:07 EDT 2008


Author: dbs
Date: 2008-07-06 12:20:05 -0400 (Sun, 06 Jul 2008)
New Revision: 9971

Modified:
   trunk/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
   trunk/Open-ILS/xul/staff_client/server/patron/display.js
Log:
Convert a few more hardcoded strings to i18n


Modified: trunk/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties	2008-07-06 16:06:30 UTC (rev 9970)
+++ trunk/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties	2008-07-06 16:20:05 UTC (rev 9971)
@@ -51,6 +51,7 @@
 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.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

Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js	2008-07-06 16:06:30 UTC (rev 9970)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js	2008-07-06 16:20:05 UTC (rev 9971)
@@ -102,7 +102,7 @@
 						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 @@
 						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) { 



More information about the open-ils-commits mailing list