From 47e33a14ac4284a25970021a74871296bd3175b6 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 25 Dec 2015 20:38:40 -0800 Subject: [PATCH] i18n UnsupportedFileTypeToast // FREEBIE --- _locales/en/messages.json | 3 +++ js/views/file_input_view.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 6416b002..8360e6ac 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1,4 +1,7 @@ { + "unsupportedFileType": { + "message": "Unsupported file type" + }, "fileSizeWarning": { "message": "Sorry, the selected file exceeds message size restrictions." }, diff --git a/js/views/file_input_view.js b/js/views/file_input_view.js index f09c4777..11a534d4 100644 --- a/js/views/file_input_view.js +++ b/js/views/file_input_view.js @@ -16,7 +16,7 @@ } }); Whisper.UnsupportedFileTypeToast = Whisper.ToastView.extend({ - template: "Unsupported file type" + template: i18n('unsupportedFileType') }); Whisper.FileInputView = Backbone.View.extend({