Added localization for delete confirmation dialog
This commit is contained in:
parent
839cd9ed48
commit
56cfe58c0a
8 changed files with 34 additions and 18 deletions
|
|
@ -490,4 +490,11 @@ PHP Censor',
|
|||
'slack_notify' => 'Slack',
|
||||
'technical_debt' => 'Technical Debt',
|
||||
'xmpp' => 'XMPP',
|
||||
|
||||
'confirm_message' => 'Item will be permanently deleted. Are you sure?',
|
||||
'confirm_title' => 'Item delete confirmation',
|
||||
'confirm_ok' => 'Delete',
|
||||
'confirm_cancel' => 'Cancel',
|
||||
'confirm_success' => 'Item successfully deleted.',
|
||||
'confirm_failed' => 'Deletion failed! Server says: ',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -474,4 +474,11 @@ PHP Censor',
|
|||
'slack_notify' => 'Slack',
|
||||
'technical_debt' => 'Technical Debt',
|
||||
'xmpp' => 'XMPP',
|
||||
|
||||
'confirm_message' => 'Элемент будет удален навсегда. Вы уверены?',
|
||||
'confirm_title' => 'Подтвержение удаления',
|
||||
'confirm_ok' => 'Удалить',
|
||||
'confirm_cancel' => 'Отмена',
|
||||
'confirm_success' => 'Элемент успешно удален.',
|
||||
'confirm_failed' => 'Удаление провалилось! Ответ сервера: ',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -180,9 +180,8 @@ foreach ($plugins as $plugin) {
|
|||
|
||||
$('#delete-build').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
confirmDelete(
|
||||
"<?= APP_URL; ?>build/delete/<?= $build->getId(); ?>", "Build"
|
||||
).onCloseConfirmed = function () {window.location = '<?= APP_URL; ?>project/view/<?= $build->getProjectId(); ?>'};
|
||||
confirmDelete("<?= APP_URL; ?>build/delete/<?= $build->getId(); ?>")
|
||||
.onCloseConfirmed = function () {window.location = '<?= APP_URL; ?>project/view/<?= $build->getProjectId(); ?>'};
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -90,7 +90,8 @@ switch($build->getStatus())
|
|||
$(document).ready(function() {
|
||||
$('.delete-build').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
confirmDelete(e.target.href, "Build").onCloseConfirmed = function () {window.location = window.location.href};
|
||||
confirmDelete(e.target.href)
|
||||
.onCloseConfirmed = function () {window.location = window.location.href};
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
$(document).ready(function() {
|
||||
$('.delete-group').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
confirmDelete(e.target.href, "Group").onCloseConfirmed = function () {window.location = window.location.href};
|
||||
confirmDelete(e.target.href).onCloseConfirmed = function () {window.location = window.location.href};
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
@ -164,9 +164,8 @@ print '</ul></div>';
|
|||
$(function() {
|
||||
$('#delete-project').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
confirmDelete(
|
||||
"<?= APP_URL; ?>project/delete/<?= $project->getId(); ?>", "Project"
|
||||
).onCloseConfirmed = function () {window.location = '/'};
|
||||
confirmDelete("<?= APP_URL; ?>project/delete/<?= $project->getId(); ?>")
|
||||
.onCloseConfirmed = function () {window.location = '/'};
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -63,7 +63,8 @@
|
|||
$(document).ready(function() {
|
||||
$('.delete-user').on('click', function (e) {
|
||||
e.preventDefault();
|
||||
confirmDelete(e.target.href, "User").onCloseConfirmed = function () {window.location = window.location.href};
|
||||
confirmDelete(e.target.href)
|
||||
.onCloseConfirmed = function () {window.location = window.location.href};
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue