mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
#47 - Fetching values from language files.
This commit is contained in:
parent
e647ec22b1
commit
218376a41c
@ -936,12 +936,12 @@ module.exports = function (ngApp, events) {
|
|||||||
|
|
||||||
element.on('click', function(e) {
|
element.on('click', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var resp = $window.confirm('This will remove the content of the comment, are you sure you want to continue?');
|
var resp = $window.confirm(trans('entities.comment_delete_confirm'));
|
||||||
if (!resp) {
|
if (!resp) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctrl.delete(scope.comment);
|
ctrl.delete(scope.comment);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -253,5 +253,6 @@ return [
|
|||||||
'comment_created' => 'Comment added',
|
'comment_created' => 'Comment added',
|
||||||
'comment_updated' => 'Comment updated',
|
'comment_updated' => 'Comment updated',
|
||||||
'comment_deleted' => 'Comment deleted',
|
'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?'
|
||||||
];
|
];
|
Loading…
Reference in New Issue
Block a user