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": { "ok": {
"message": "OK" "message": "OK"
}, },

View file

@ -7,13 +7,13 @@
<div class='global-menu menu'> <div class='global-menu menu'>
<button class='hamburger'></button> <button class='hamburger'></button>
<ul class='menu-list'> <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> </ul>
</div> </div>
<span class='socket-status'></span> <span class='socket-status'></span>
<div class='tool-bar clearfix'> <div class='tool-bar clearfix'>
<!-- <button class='show-new-conversation'></button> --> <!-- <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> </div>
<div class='gutter'> <div class='gutter'>
@ -24,8 +24,8 @@
</div> </div>
<div class='conversation-stack'> <div class='conversation-stack'>
<div class='conversation placeholder'> <div class='conversation placeholder'>
<h3>Welcome to Signal</h3> <h3>{{ welcomeToSignal }}</h3>
<p> Select a contact or group to start chatting.</p> <p>{{ selectAContact }}</p>
</div> </div>
</div> </div>
</script> </script>

View file

@ -111,6 +111,12 @@
this.inboxListView.stopListening(); this.inboxListView.stopListening();
}.bind(this)); }.bind(this));
}, },
render_attributes: {
welcomeToSignal: i18n('welcomeToSignal'),
selectAContact: i18n('selectAContact'),
searchForPeopleOrGroups: i18n('searchForPeopleOrGroups'),
submitDebugLog: i18n('submitDebugLog')
},
events: { events: {
'click': 'closeMenu', 'click': 'closeMenu',
'click .hamburger': 'toggleMenu', 'click .hamburger': 'toggleMenu',