diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 8360e6ac..449d8b5c 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1,6 +1,11 @@ { + "unsupportedAttachment": { + "message": "Unsupported attachment type. Click to save.", + "description": "Displayed for incoming unsupported attachment" + }, "unsupportedFileType": { - "message": "Unsupported file type" + "message": "Unsupported file type", + "description": "Displayed for outgoing unsupported attachment" }, "fileSizeWarning": { "message": "Sorry, the selected file exceeds message size restrictions." diff --git a/js/views/attachment_view.js b/js/views/attachment_view.js index 9c9d9689..39ae0a98 100644 --- a/js/views/attachment_view.js +++ b/js/views/attachment_view.js @@ -8,7 +8,7 @@ tagName: 'a', initialize: function(dataUrl) { this.dataUrl = dataUrl; - this.$el.text("Unsupported attachment type. Click to save."); + this.$el.text(i18n('unsupportedAttachment')); }, events: { 'click': 'open'