i18n ConfirmationDialogView
// FREEBIE
This commit is contained in:
parent
ea9fa00658
commit
73ea415e95
3 changed files with 13 additions and 3 deletions
|
@ -1,4 +1,10 @@
|
|||
{
|
||||
"ok": {
|
||||
"message": "OK"
|
||||
},
|
||||
"cancel": {
|
||||
"message": "Cancel"
|
||||
},
|
||||
"failedToSend": {
|
||||
"message": "Failed to send to some recipients."
|
||||
},
|
||||
|
|
|
@ -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'>
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue