i18n InboxView

// FREEBIE
This commit is contained in:
lilia 2015-12-25 18:15:04 -08:00
parent 85eb5c4d59
commit 836a7cb8c5
3 changed files with 23 additions and 4 deletions

View file

@ -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"
},

View file

@ -7,13 +7,13 @@
<div class='global-menu menu'>
<button class='hamburger'></button>
<ul class='menu-list'>
<li><a class='show-debug-log'>Submit debug log</a></li>
<li><a class='show-debug-log'>{{ submitDebugLog }}</a></li>
</ul>
</div>
<span class='socket-status'></span>
<div class='tool-bar clearfix'>
<!-- <button class='show-new-conversation'></button> -->
<input type='search' class='search' placeholder='Search for people or groups'>
<input type='search' class='search' placeholder='{{ searchForPeopleOrGroups }}'>
</div>
</div>
<div class='gutter'>
@ -24,8 +24,8 @@
</div>
<div class='conversation-stack'>
<div class='conversation placeholder'>
<h3>Welcome to Signal</h3>
<p> Select a contact or group to start chatting.</p>
<h3>{{ welcomeToSignal }}</h3>
<p>{{ selectAContact }}</p>
</div>
</div>
</script>

View file

@ -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',