From 836a7cb8c5bdd15c32db2edc71eabb52a506d375 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 25 Dec 2015 18:15:04 -0800 Subject: [PATCH] i18n InboxView // FREEBIE --- _locales/en/messages.json | 13 +++++++++++++ background.html | 8 ++++---- js/views/inbox_view.js | 6 ++++++ 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 2b049008d9e..92fe83a1af3 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1,4 +1,17 @@ { + "submitDebugLog": { + "message": "Submit debug log" + }, + "searchForPeopleOrGroups": { + "message": "Search for people or groups", + "description": "Placeholder text in the search input" + }, + "welcomeToSignal": { + "message": "Welcome to Signal" + }, + "selectAContact": { + "message": "Select a contact or group to start chatting." + }, "ok": { "message": "OK" }, diff --git a/background.html b/background.html index 5abec09d699..a0f50cff891 100644 --- a/background.html +++ b/background.html @@ -7,13 +7,13 @@
- +
@@ -24,8 +24,8 @@
-

Welcome to Signal

-

Select a contact or group to start chatting.

+

{{ welcomeToSignal }}

+

{{ selectAContact }}

diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index 9684706c271..182d5e45ae4 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -111,6 +111,12 @@ this.inboxListView.stopListening(); }.bind(this)); }, + render_attributes: { + welcomeToSignal: i18n('welcomeToSignal'), + selectAContact: i18n('selectAContact'), + searchForPeopleOrGroups: i18n('searchForPeopleOrGroups'), + submitDebugLog: i18n('submitDebugLog') + }, events: { 'click': 'closeMenu', 'click .hamburger': 'toggleMenu',