"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",
// 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
});
};
this.updateScanBox({
- msg : 'Please log in with your username or library barcode.', // TODO
+ msg : localeStrings.PLEASE_LOGIN,
handler : bcHandler
});
}
var self = this;
this.updateScanBox({
- msg : 'Please enter an item barcode', // TODO i18n
+ msg : localeStrings.ENTER_BARCODE,
handler : function(barcode) { self.checkout(barcode); }
});
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();
}