diff --git a/public/js/ff/import/status.js b/public/js/ff/import/status.js index a312dd6b8c..5cb6abb39e 100644 --- a/public/js/ff/import/status.js +++ b/public/js/ff/import/status.js @@ -5,7 +5,7 @@ * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ -/* globals $, jobImportUrl, jobStartUrl, token */ +/* globals $, jobImportUrl, jobStartUrl, token, langImportMultiError, langImportSingleError */ var startedImport = false; @@ -57,13 +57,15 @@ function updateBar(data) { function reportErrors(data) { "use strict"; if (data.errors.length == 1) { - $('#import-status-error-intro').text('An error has occured during the import. The import can continue, however.'); + $('#import-status-error-intro').text(langImportSingleError); + //'An error has occured during the import. The import can continue, however.' } if (data.errors.length > 1) { - $('#import-status-error-intro').text('Errors have occured during the import. The import can continue, however.'); + // 'Errors have occured during the import. The import can continue, however.' + $('#import-status-error-intro').text(langImportMultiError); } - // fill the list: + // fill the list with error texts $('#import-status-error-list').empty(); for (var i = 0; i < data.errors.length; i++) { var item = $('