From cdd0c1935b56690d10cc02884d7c3c5e6ca0d599 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 22 Aug 2014 12:37:30 +0000 Subject: [PATCH] Fix global category delete dialog translation issue --- admin/js/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/js/app.js b/admin/js/app.js index 9d3ecf95a0..a06aedd5ed 100644 --- a/admin/js/app.js +++ b/admin/js/app.js @@ -781,9 +781,9 @@ app.classes.admin = AppJS.extend( delete_category: function (_action) { var _buttons = [ - {"button_id": "delete[cancel]","text": 'Cancel', id: 'delete[cancel]', image: 'cancel', "default":true}, - {"button_id": "delete[delete]","text": 'Delete', id: 'delete[delete]', image: 'delete'}, - {"button_id": "delete[subs]","text": 'Delete including sub-enteries', id: 'delete[subs]', image: 'delete'}, + {"button_id": "delete[cancel]","text": this.egw.lang('Cancel'), id: 'delete[cancel]', image: 'cancel', "default":true}, + {"button_id": "delete[delete]","text": this.egw.lang('Delete'), id: 'delete[delete]', image: 'delete'}, + {"button_id": "delete[subs]","text": this.egw.lang('Delete including sub-enteries'), id: 'delete[subs]', image: 'delete'}, ]; var action = _action; var self = this; @@ -813,6 +813,6 @@ app.classes.admin = AppJS.extend( } } }; - et2_dialog.show_dialog(delDialog_callBack,"Are you sure you want to delete this category ?","Delete",{},_buttons); + et2_dialog.show_dialog(delDialog_callBack,this.egw.lang("Are you sure you want to delete this category ?"),this.egw.lang("Delete"),{},_buttons,et2_dialog.WARNING_MESSAGE,null,'admin'); } });