From 153a840b78bd224351bfe779d6720eb04958d892 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Tue, 16 Jul 2013 18:33:32 +0300 Subject: [PATCH] Fix untranslatable strings in the selfcheck interface. Signed-off-by: Pasi Kallinen Signed-off-by: Ben Shum --- Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js | 4 ++++ Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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 766fcbc8ae..395a6a1276 100644 --- a/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js +++ b/Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js @@ -20,6 +20,10 @@ "CC_PAYABLE_BALANCE" : "Total amount to pay: $${0}", "TOTAL_FINES_SELECTED" : "Selected total: $${0}", "WELCOME_BANNER" : "Welcome, ${0}", + "ENTER_PASSWORD" : "Please enter your password", + "PLEASE_LOGIN" : "Please log in with your username or library barcode.", + "ENTER_BARCODE" : "Please enter an item barcode", + "MISCELLANEOUS" : "Miscellaneous", "FAIL_PART_actor_usr_barred": "The patron is barred", "FAIL_PART_asset_copy_circulate": "The item does not circulate", "FAIL_PART_asset_copy_location_circulate": "Items from this shelving location do not circulate", diff --git a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js index 0b47be3913..1f2448a804 100644 --- a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js @@ -287,7 +287,7 @@ SelfCheckManager.prototype.drawLoginPage = function() { // password is required. wire up the scan box to read it self.updateScanBox({ - msg : 'Please enter your password', // TODO i18n + msg : localeStrings.ENTER_PASSWORD, handler : function(pw) { self.loginPatron(barcode_or_usrname, pw); }, password : true }); @@ -299,7 +299,7 @@ SelfCheckManager.prototype.drawLoginPage = function() { }; this.updateScanBox({ - msg : 'Please log in with your username or library barcode.', // TODO + msg : localeStrings.PLEASE_LOGIN, handler : bcHandler }); } @@ -479,7 +479,7 @@ SelfCheckManager.prototype.drawCircPage = function() { var self = this; this.updateScanBox({ - msg : 'Please enter an item barcode', // TODO i18n + msg : localeStrings.ENTER_BARCODE, handler : function(barcode) { self.checkout(barcode); } }); @@ -835,7 +835,7 @@ SelfCheckManager.prototype.drawFinesPage = function() { self.byName(row, 'details').innerHTML = data.record.title(); } else if(type == 'grocery') { - self.byName(row, 'type').innerHTML = 'Miscellaneous'; // Go ahead and head off any confusion around "grocery". TODO i18n + self.byName(row, 'type').innerHTML = localeStrings.MISCELLANEOUS; // Go ahead and head off any confusion around "grocery". self.byName(row, 'details').innerHTML = data.transaction.last_billing_type(); } -- 2.11.0