Fix untranslatable strings in the selfcheck interface.
authorPasi Kallinen <pasi.kallinen@pttk.fi>
Tue, 16 Jul 2013 15:33:32 +0000 (18:33 +0300)
committerBen Shum <bshum@biblio.org>
Wed, 17 Jul 2013 14:06:52 +0000 (10:06 -0400)
Signed-off-by: Pasi Kallinen <pasi.kallinen@pttk.fi>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js
Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js

index 766fcbc..395a6a1 100644 (file)
     "CC_PAYABLE_BALANCE" : "Total amount to pay: $${0}",
     "TOTAL_FINES_SELECTED" : "Selected total: $${0}",
     "WELCOME_BANNER" : "Welcome, ${0}",
     "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",
     "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",
index 0b47be3..1f2448a 100644 (file)
@@ -287,7 +287,7 @@ SelfCheckManager.prototype.drawLoginPage = function() {
             
             // password is required.  wire up the scan box to read it
             self.updateScanBox({
             
             // 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
             });
                 handler : function(pw) { self.loginPatron(barcode_or_usrname, pw); },
                 password : true
             });
@@ -299,7 +299,7 @@ SelfCheckManager.prototype.drawLoginPage = function() {
     };
 
     this.updateScanBox({
     };
 
     this.updateScanBox({
-        msg : 'Please log in with your username or library barcode.', // TODO
+        msg : localeStrings.PLEASE_LOGIN,
         handler : bcHandler
     });
 }
         handler : bcHandler
     });
 }
@@ -479,7 +479,7 @@ SelfCheckManager.prototype.drawCircPage = function() {
 
     var self = this;
     this.updateScanBox({
 
     var self = this;
     this.updateScanBox({
-        msg : 'Please enter an item barcode', // TODO i18n
+        msg : localeStrings.ENTER_BARCODE,
         handler : function(barcode) { self.checkout(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, '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();
             }
 
                 self.byName(row, 'details').innerHTML = data.transaction.last_billing_type();
             }