i18n ConversationView
// FREEBIE
This commit is contained in:
parent
e9d3272e87
commit
02cc6623ea
4 changed files with 40 additions and 6 deletions
|
@ -1,2 +1,18 @@
|
|||
{
|
||||
"sendMessage": {
|
||||
"message": "Send a message",
|
||||
"description": "Placeholder text in the message entry field"
|
||||
},
|
||||
"members": {
|
||||
"message": "Members"
|
||||
},
|
||||
"resetSession": {
|
||||
"message": "Reset Session"
|
||||
},
|
||||
"verifyIdentity": {
|
||||
"message": "Verify Identity"
|
||||
},
|
||||
"deleteMessages": {
|
||||
"message": "Delete messages"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,2 +1,14 @@
|
|||
{
|
||||
"sendMessage": {
|
||||
"message": "Invia messaggio"
|
||||
},
|
||||
"resetSession": {
|
||||
"message": "Resetta Sessione"
|
||||
},
|
||||
"verifyIdentity": {
|
||||
"message": "Verifica Identità"
|
||||
},
|
||||
"deleteMessages": {
|
||||
"message": "Cancella messaggi"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,15 +39,15 @@
|
|||
<button class='drop-down'></button>
|
||||
<ul class='menu-list'>
|
||||
{{#group}}
|
||||
<li><a class='view-members'>Members</a></li>
|
||||
<li><a class='view-members'>{{ view-members }}</a></li>
|
||||
<!-- <li><a class='update-group'>Update group</a></li> -->
|
||||
<!-- <li><a class='leave-group'>Leave group</a></li> -->
|
||||
{{/group}}
|
||||
{{^group}}
|
||||
<li><a class='end-session'>Reset Session</a></li>
|
||||
<li><a class='verify-identity'>Verify Identity</a></li>
|
||||
<li><a class='end-session'>{{ end-session }}</a></li>
|
||||
<li><a class='verify-identity'>{{ verify-identity }}</a></li>
|
||||
{{/group}}
|
||||
<li><a class='destroy'>Delete messages</a></li>
|
||||
<li><a class='destroy'>{{ destroy }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
{{> avatar }}
|
||||
|
@ -68,7 +68,7 @@
|
|||
<div class='paperclip thumbnail'></div>
|
||||
<input type='file' class='file-input'>
|
||||
</div>
|
||||
<textarea class='send-message' placeholder="Send a message" rows="1"></textarea>
|
||||
<textarea class='send-message' placeholder="{{ send-message }}" rows="1"></textarea>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -19,7 +19,12 @@
|
|||
group: this.model.get('type') === 'group',
|
||||
title: this.model.getTitle(),
|
||||
number: this.model.getNumber(),
|
||||
avatar: this.model.getAvatar()
|
||||
avatar: this.model.getAvatar(),
|
||||
'view-members' : i18n('members'),
|
||||
'end-session' : i18n('resetSession'),
|
||||
'verify-identity' : i18n('verifyIdentity'),
|
||||
'destroy' : i18n('deleteMessages'),
|
||||
'send-message' : i18n('sendMessage')
|
||||
};
|
||||
},
|
||||
initialize: function(options) {
|
||||
|
@ -30,6 +35,7 @@
|
|||
this.listenTo(this.model, 'opened', this.onOpened);
|
||||
|
||||
this.render();
|
||||
|
||||
twemoji.parse(this.el, { base: '/images/twemoji/', size: 16 });
|
||||
|
||||
this.appWindow = options.appWindow;
|
||||
|
|
Loading…
Reference in a new issue