i18n ConfirmationDialogView

// FREEBIE
This commit is contained in:
lilia 2015-12-25 16:52:04 -08:00
parent ea9fa00658
commit 73ea415e95
3 changed files with 13 additions and 3 deletions

View file

@ -1,4 +1,10 @@
{
"ok": {
"message": "OK"
},
"cancel": {
"message": "Cancel"
},
"failedToSend": {
"message": "Failed to send to some recipients."
},

View file

@ -76,8 +76,8 @@
<script type='text/x-tmpl-mustache' id='confirmation-dialog'>
<div class='message'>{{ message }}</div>
<div class='buttons'>
<button class='cancel'>Cancel</button>
<button class='ok'>OK</button>
<button class='cancel'>{{ cancel }}</button>
<button class='ok'>{{ ok }}</button>
</div>
</script>
<script type='text/x-tmpl-mustache' id='attachment-preview'>

View file

@ -19,7 +19,11 @@
'click .cancel': 'cancel',
},
render_attributes: function() {
return { message: this.message };
return {
message: this.message,
cancel: i18n('cancel'),
ok: i18n('ok')
};
},
ok: function() {
this.remove();