[open-ils-commits] r16522 - in trunk/Open-ILS/web/js: dojo/openils/circ/nls ui/default/circ/selfcheck (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 27 14:42:13 EDT 2010
Author: erickson
Date: 2010-05-27 14:42:08 -0400 (Thu, 27 May 2010)
New Revision: 16522
Modified:
trunk/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js
trunk/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js
Log:
for some added privacy, display the user's username instead of their real name in the self-check welcome banner. i18n-ified
Modified: trunk/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js 2010-05-27 16:10:50 UTC (rev 16521)
+++ trunk/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js 2010-05-27 18:42:08 UTC (rev 16522)
@@ -18,6 +18,7 @@
'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}'
+ 'TOTAL_FINES_SELECTED' : 'Selected total: \$${0}',
+ 'WELCOME_BANNER' : 'Welcome, ${0}'
}
Modified: trunk/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js 2010-05-27 16:10:50 UTC (rev 16521)
+++ trunk/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js 2010-05-27 18:42:08 UTC (rev 16522)
@@ -293,7 +293,8 @@
} else {
this.handleAlert('', false, 'login-success');
- dojo.byId('oils-selfck-user-banner').innerHTML = 'Welcome, ' + this.patron.first_given_name(); // TODO i18n
+ dojo.byId('oils-selfck-user-banner').innerHTML =
+ dojo.string.substitute(localeStrings.WELCOME_BANNER, [this.patron.usrname()]);
this.drawCircPage();
}
}
More information about the open-ils-commits
mailing list