From f8dc82c3cef50a2502328701e78662bb66aa6d75 Mon Sep 17 00:00:00 2001 From: Alessandro Verdura Date: Mon, 1 Jun 2015 22:20:46 +0200 Subject: [PATCH] Translate error message for unsupported file format TNL-925 --- cms/static/js/factories/import.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); } };