element.on('click', function(e) {
e.preventDefault();
- var resp = $window.confirm('This will remove the content of the comment, are you sure you want to continue?');
- if (!resp) {
- return;
- }
+ var resp = $window.confirm(trans('entities.comment_delete_confirm'));
+ if (!resp) {
+ return;
+ }
- ctrl.delete(scope.comment);
+ ctrl.delete(scope.comment);
});
}
};
'comment_created' => 'Comment added',
'comment_updated' => 'Comment updated',
'comment_deleted' => 'Comment deleted',
- 'comment_updated_text' => 'Updated :updateDiff by'
+ 'comment_updated_text' => 'Updated :updateDiff by',
+ 'comment_delete_confirm' => 'This will remove the contents of the comment. Are you sure you want to delete this comment?'
];
\ No newline at end of file