function fnErrorHandler(evt) {
switch(evt.target.error.code) {
case evt.target.error.NOT_FOUND_ERR:
- alert('File Not Found!');
+ alert(_("File Not Found!"));
break;
case evt.target.error.NOT_READABLE_ERR:
- alert('File is not readable');
+ alert(_("File is not readable"));
break;
case evt.target.error.ABORT_ERR:
break; // noop
default:
- alert('An error occurred reading this file.');
+ alert(_("An error occurred reading this file."));
};
}
"aaData" : aaData,
"aoColumns" : [
{
- "sTitle" : "Number",
+ "sTitle" : _("Number"),
"sWidth" : "2%",
},
{
- "sTitle" : "Source",
+ "sTitle" : _("Source"),
"sWidth" : "15%",
},
{
- "sTitle" : "Quote",
+ "sTitle" : _("Quote"),
"sWidth" : "83%",
},
],
reader.onerror = fnErrorHandler;
reader.onprogress = fnUpdateProgress;
reader.onabort = function(e) {
- alert('File read cancelled');
+ alert(_("File read cancelled"));
parent.location='quotes-upload.pl';
};
reader.onloadstart = function(e) {