Fix #583 from/to label translatable

I just added i18n calls and the corresponding keys for en + de.
This commit is contained in:
Felix Epp 2016-01-08 19:36:34 +01:00 committed by lilia
parent 1565b1c0a6
commit a65166ae3b
3 changed files with 18 additions and 2 deletions

View file

@ -95,6 +95,14 @@
"message": "Nachrichten-Details",
"description": ""
},
"from": {
"message": "Von",
"description": "Label for the sender of a message"
},
"to": {
"message": "An",
"description": "Label for the receiver of a message"
},
"verify": {
"message": "Verifizieren",
"description": ""
@ -119,4 +127,4 @@
"message": "Erneut senden",
"description": ""
}
}
}

View file

@ -68,6 +68,14 @@
"messageDetail": {
"message": "Message Detail"
},
"from": {
"message": "From",
"description": "Label for the sender of a message"
},
"to": {
"message": "To",
"description": "Label for the receiver of a message"
},
"sent": {
"message": "Sent",
"description": "Label for the time a message was sent"

View file

@ -111,7 +111,7 @@
this.$el.html(Mustache.render(_.result(this, 'template', ''), {
sent_at : moment(this.model.get('sent_at')).toString(),
received_at : this.model.isIncoming() ? moment(this.model.get('received_at')).toString() : null,
tofrom : this.model.isIncoming() ? 'From' : 'To',
tofrom : this.model.isIncoming() ? i18n('from') : i18n('to'),
errors : this.errors['undefined'],
title : i18n('messageDetail'),
sent : i18n('sent'),