From 0a43e9e8b2c7a3317eccf4c00b96476279822164 Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 24 Dec 2015 22:52:50 -0800 Subject: [PATCH] i18n EndSessionView // FREEBIE --- _locales/en/messages.json | 3 +++ _locales/it/messages.json | 3 +++ js/views/end_session_view.js | 6 +++--- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 294781ba..024627fc 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -14,5 +14,8 @@ }, "deleteMessages": { "message": "Delete messages" + }, + "sessionEnded": { + "message": "Secure session ended" } } diff --git a/_locales/it/messages.json b/_locales/it/messages.json index bf7ce041..9df0e2a6 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -10,5 +10,8 @@ }, "deleteMessages": { "message": "Cancella messaggi" + }, + "sessionEnded": { + "message": "Sessione sicura terminata" } } diff --git a/js/views/end_session_view.js b/js/views/end_session_view.js index 63b150b6..8949b634 100644 --- a/js/views/end_session_view.js +++ b/js/views/end_session_view.js @@ -7,11 +7,11 @@ window.Whisper = window.Whisper || {}; Whisper.EndSessionView = Whisper.View.extend({ - tagName: "div", - className: "end-session", + tagName: 'div', + className: 'end-session', templateName: 'message', render_attributes: function() { - return { text: 'Secure session ended' }; + return { text: i18n('sessionEnded') }; } });