i18n MessageDetailView
// FREEBIE
This commit is contained in:
parent
0a43e9e8b2
commit
ea9fa00658
4 changed files with 47 additions and 6 deletions
|
@ -1,4 +1,24 @@
|
||||||
{
|
{
|
||||||
|
"failedToSend": {
|
||||||
|
"message": "Failed to send to some recipients."
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"message": "Error"
|
||||||
|
},
|
||||||
|
"resend": {
|
||||||
|
"message": "Resend"
|
||||||
|
},
|
||||||
|
"messageDetail": {
|
||||||
|
"message": "Message Detail"
|
||||||
|
},
|
||||||
|
"sent": {
|
||||||
|
"message": "Sent",
|
||||||
|
"description": "Label for the time a message was sent"
|
||||||
|
},
|
||||||
|
"received": {
|
||||||
|
"message": "Received",
|
||||||
|
"description": "Label for the time a message was received"
|
||||||
|
},
|
||||||
"sendMessage": {
|
"sendMessage": {
|
||||||
"message": "Send a message",
|
"message": "Send a message",
|
||||||
"description": "Placeholder text in the message entry field"
|
"description": "Placeholder text in the message entry field"
|
||||||
|
|
|
@ -1,4 +1,13 @@
|
||||||
{
|
{
|
||||||
|
"messageDetail": {
|
||||||
|
"message": "Dettagli Messaggio"
|
||||||
|
},
|
||||||
|
"sent": {
|
||||||
|
"message": "Inviato"
|
||||||
|
},
|
||||||
|
"received": {
|
||||||
|
"message": "Ricevuto"
|
||||||
|
},
|
||||||
"sendMessage": {
|
"sendMessage": {
|
||||||
"message": "Invia messaggio"
|
"message": "Invia messaggio"
|
||||||
},
|
},
|
||||||
|
|
|
@ -166,25 +166,31 @@
|
||||||
<script type='text/x-tmpl-mustache' id='message-detail'>
|
<script type='text/x-tmpl-mustache' id='message-detail'>
|
||||||
<div class='conversation-header'>
|
<div class='conversation-header'>
|
||||||
<button class='back'></button>
|
<button class='back'></button>
|
||||||
<span class='conversation-title'>Message Detail</span>
|
<span class='conversation-title'>{{ title }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='container'>
|
<div class='container'>
|
||||||
<div class='message-container'></div>
|
<div class='message-container'></div>
|
||||||
<div class='info'>
|
<div class='info'>
|
||||||
{{ #hasRetry }}
|
{{ #hasRetry }}
|
||||||
<h3 class='hasRetry clearfix'>
|
<h3 class='hasRetry clearfix'>
|
||||||
<button class='retry'>Resend</button>
|
<button class='retry'>{{ resend }}</button>
|
||||||
<span>Failed to send to some recipients.</span>
|
<span>{{ failedToSend }}</span>
|
||||||
</h3>
|
</h3>
|
||||||
{{ /hasRetry }}
|
{{ /hasRetry }}
|
||||||
<table>
|
<table>
|
||||||
<tr><td class='label'>Sent</td><td> {{ sent_at }}</td></tr>
|
<tr>
|
||||||
|
<td class='label'>{{ sent }}</td>
|
||||||
|
<td> {{ sent_at }}</td>
|
||||||
|
</tr>
|
||||||
{{ #received_at }}
|
{{ #received_at }}
|
||||||
<tr><td class='label'>Received</td><td> {{ received_at }}</td></tr>
|
<tr>
|
||||||
|
<td class='label'>{{ received }}</td>
|
||||||
|
<td> {{ received_at }}</td>
|
||||||
|
</tr>
|
||||||
{{ /received_at }}
|
{{ /received_at }}
|
||||||
{{ #errors }}
|
{{ #errors }}
|
||||||
<tr>
|
<tr>
|
||||||
<td class='label'>Error</td>
|
<td class='label'>{{ error-label }}</td>
|
||||||
<td> <span class='error-message'>{{message}}</span> </td>
|
<td> <span class='error-message'>{{message}}</span> </td>
|
||||||
</tr>
|
</tr>
|
||||||
{{ /errors }}
|
{{ /errors }}
|
||||||
|
|
|
@ -112,6 +112,12 @@
|
||||||
received_at : this.model.isIncoming() ? moment(this.model.get('received_at')).toString() : null,
|
received_at : this.model.isIncoming() ? moment(this.model.get('received_at')).toString() : null,
|
||||||
tofrom : this.model.isIncoming() ? 'From' : 'To',
|
tofrom : this.model.isIncoming() ? 'From' : 'To',
|
||||||
errors : this.errors['undefined'],
|
errors : this.errors['undefined'],
|
||||||
|
title : i18n('messageDetail'),
|
||||||
|
sent : i18n('sent'),
|
||||||
|
received : i18n('received'),
|
||||||
|
resend : i18n('resend'),
|
||||||
|
failedToSend: i18n('failedToSend'),
|
||||||
|
'error-label': i18n('error'),
|
||||||
hasRetry : hasRetry
|
hasRetry : hasRetry
|
||||||
}));
|
}));
|
||||||
this.view.$el.prependTo(this.$('.message-container'));
|
this.view.$el.prependTo(this.$('.message-container'));
|
||||||
|
|
Loading…
Reference in a new issue