View | Details | Raw Unified | Return to bug 20330
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt (-8 / +7 lines)
Lines 109-123 Link Here
109
        function fnErrorHandler(evt) {
109
        function fnErrorHandler(evt) {
110
            switch(evt.target.error.code) {
110
            switch(evt.target.error.code) {
111
                case evt.target.error.NOT_FOUND_ERR:
111
                case evt.target.error.NOT_FOUND_ERR:
112
                    alert('File Not Found!');
112
                    alert(_("File Not Found!"));
113
                    break;
113
                    break;
114
                case evt.target.error.NOT_READABLE_ERR:
114
                case evt.target.error.NOT_READABLE_ERR:
115
                    alert('File is not readable');
115
                    alert(_("File is not readable"));
116
                    break;
116
                    break;
117
                case evt.target.error.ABORT_ERR:
117
                case evt.target.error.ABORT_ERR:
118
                    break; // noop
118
                    break; // noop
119
                default:
119
                default:
120
                    alert('An error occurred reading this file.');
120
                    alert(_("An error occurred reading this file."));
121
            };
121
            };
122
        }
122
        }
123
123
Lines 237-251 Link Here
237
                "aaData"            : aaData,
237
                "aaData"            : aaData,
238
                "aoColumns"         : [
238
                "aoColumns"         : [
239
                    {
239
                    {
240
                        "sTitle"  : "Number",
240
                        "sTitle"  : _("Number"),
241
                        "sWidth"  : "2%",
241
                        "sWidth"  : "2%",
242
                    },
242
                    },
243
                    {
243
                    {
244
                        "sTitle"  : "Source",
244
                        "sTitle"  : _("Source"),
245
                        "sWidth"  : "15%",
245
                        "sWidth"  : "15%",
246
                    },
246
                    },
247
                    {
247
                    {
248
                        "sTitle"  : "Quote",
248
                        "sTitle"  : _("Quote"),
249
                        "sWidth"  : "83%",
249
                        "sWidth"  : "83%",
250
                    },
250
                    },
251
                ],
251
                ],
Lines 292-298 Link Here
292
            reader.onerror = fnErrorHandler;
292
            reader.onerror = fnErrorHandler;
293
            reader.onprogress = fnUpdateProgress;
293
            reader.onprogress = fnUpdateProgress;
294
            reader.onabort = function(e) {
294
            reader.onabort = function(e) {
295
                alert('File read cancelled');
295
                alert(_("File read cancelled"));
296
                parent.location='quotes-upload.pl';
296
                parent.location='quotes-upload.pl';
297
            };
297
            };
298
            reader.onloadstart = function(e) {
298
            reader.onloadstart = function(e) {
299
- 

Return to bug 20330