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": {
|
"failedToSend": {
|
||||||
"message": "Failed to send to some recipients."
|
"message": "Failed to send to some recipients."
|
||||||
},
|
},
|
||||||
|
|
|
@ -76,8 +76,8 @@
|
||||||
<script type='text/x-tmpl-mustache' id='confirmation-dialog'>
|
<script type='text/x-tmpl-mustache' id='confirmation-dialog'>
|
||||||
<div class='message'>{{ message }}</div>
|
<div class='message'>{{ message }}</div>
|
||||||
<div class='buttons'>
|
<div class='buttons'>
|
||||||
<button class='cancel'>Cancel</button>
|
<button class='cancel'>{{ cancel }}</button>
|
||||||
<button class='ok'>OK</button>
|
<button class='ok'>{{ ok }}</button>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
<script type='text/x-tmpl-mustache' id='attachment-preview'>
|
<script type='text/x-tmpl-mustache' id='attachment-preview'>
|
||||||
|
|
|
@ -19,7 +19,11 @@
|
||||||
'click .cancel': 'cancel',
|
'click .cancel': 'cancel',
|
||||||
},
|
},
|
||||||
render_attributes: function() {
|
render_attributes: function() {
|
||||||
return { message: this.message };
|
return {
|
||||||
|
message: this.message,
|
||||||
|
cancel: i18n('cancel'),
|
||||||
|
ok: i18n('ok')
|
||||||
|
};
|
||||||
},
|
},
|
||||||
ok: function() {
|
ok: function() {
|
||||||
this.remove();
|
this.remove();
|
||||||
|
|
Loading…
Reference in a new issue