Translate error message for unsupported file format

TNL-925
This commit is contained in:
Alessandro Verdura
2015-06-01 22:20:46 +02:00
parent 31802a6675
commit f8dc82c3ce

View File

@@ -143,7 +143,10 @@ define([
submitBtn.show();
$('.progress').show();
} else {
$('.error-block').html(gettext('File format not supported. Please upload a file with a <code>tar.gz</code> extension.')).show();
var msg = gettext('File format not supported. Please upload a file with a {file_extension} extension.')
.replace('{file_extension}', '<code>tar.gz</code>');
$('.error-block').html(msg).show();
}
};