From ccdbfc3e1201f885073b8c4220edb5f5be7d4827 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 25 Dec 2015 21:12:17 -0800 Subject: [PATCH] i18n AttachmentView // FREEBIE --- _locales/en/messages.json | 7 ++++++- js/views/attachment_view.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 8360e6ace..449d8b5c9 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 9c9d96892..39ae0a982 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'