Automated cherry pick of #3768 (#3785)

* MM-20949 Updated verbiage for profile image error

* Updated commit
This commit is contained in:
Mattermost Build 2020-01-09 15:09:59 +01:00 committed by Amy Blais
parent 99f4cd77f0
commit e2ae1b851f
2 changed files with 2 additions and 4 deletions

View file

@ -310,9 +310,7 @@ export default class EditProfile extends PureComponent {
const {formatMessage} = this.context.intl;
const fileTypeWarning = formatMessage({
id: 'mobile.file_upload.unsupportedMimeType',
defaultMessage: 'Only files of the following MIME type can be uploaded: {mimeTypes}',
}, {
mimeTypes: VALID_MIME_TYPES.join('\n'),
defaultMessage: 'Only BMP, JPG or PNG images may be used for profile pictures.',
});
Alert.alert('', fileTypeWarning);

View file

@ -262,7 +262,7 @@
"mobile.file_upload.camera_video": "Take Video",
"mobile.file_upload.library": "Photo Library",
"mobile.file_upload.max_warning": "Uploads limited to 5 files maximum.",
"mobile.file_upload.unsupportedMimeType": "Only files of the following MIME type can be uploaded:\n{mimeTypes}",
"mobile.file_upload.unsupportedMimeType": "Only BMP, JPG or PNG images may be used for profile pictures.",
"mobile.file_upload.video": "Video Library",
"mobile.files_paste.error_description": "An error occurred while pasting the file(s). Please try again.",
"mobile.files_paste.error_dismiss": "Dismiss",