Update user message strings

This commit is contained in:
muhammad-ammar
2015-04-17 20:45:26 +05:00
committed by Andy Armstrong
parent 17392ef3bf
commit cfcb38c498
7 changed files with 68 additions and 37 deletions

View File

@@ -195,7 +195,7 @@ define(['backbone', 'jquery', 'underscore', 'js/common_helpers/ajax_helpers', 'j
// Verify error message
expect($('.message-banner').text().trim())
.toBe('Your image must be smaller than 64 bytes in size.');
.toBe('The file must be smaller than 64 bytes in size.');
});
it("can't upload image having size less than min size", function() {
@@ -208,7 +208,7 @@ define(['backbone', 'jquery', 'underscore', 'js/common_helpers/ajax_helpers', 'j
imageView.$('.upload-button-input').fileupload('add', {files: [createFakeImageFile(10)]});
// Verify error message
expect($('.message-banner').text().trim()).toBe('Your image must be at least 16 bytes in size.');
expect($('.message-banner').text().trim()).toBe('The file must be at least 16 bytes in size.');
});
it("can't upload and remove image if parental consent required", function() {

View File

@@ -668,7 +668,7 @@
humanReadableSize = this.bytesToHumanReadable(this.options.imageMinBytes);
this.showErrorMessage(
interpolate_text(
gettext("Your image must be at least {size} in size."), {size: humanReadableSize}
gettext("The file must be at least {size} in size."), {size: humanReadableSize}
)
);
return false;
@@ -676,7 +676,7 @@
humanReadableSize = this.bytesToHumanReadable(this.options.imageMaxBytes);
this.showErrorMessage(
interpolate_text(
gettext("Your image must be smaller than {size} in size."), {size: humanReadableSize}
gettext("The file must be smaller than {size} in size."), {size: humanReadableSize}
)
);
return false;