diff --git a/cms/static/js/factories/import.js b/cms/static/js/factories/import.js index 332477e341..814c90e3bc 100644 --- a/cms/static/js/factories/import.js +++ b/cms/static/js/factories/import.js @@ -143,7 +143,10 @@ define([ submitBtn.show(); $('.progress').show(); } else { - $('.error-block').html(gettext('File format not supported. Please upload a file with a tar.gz extension.')).show(); + var msg = gettext('File format not supported. Please upload a file with a {file_extension} extension.') + .replace('{file_extension}', 'tar.gz'); + + $('.error-block').html(msg).show(); } };