Added localization for delete confirmation dialog

This commit is contained in:
Dmitry Khomutov 2017-01-14 16:58:55 +07:00
commit 56cfe58c0a
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
8 changed files with 34 additions and 18 deletions

View file

@ -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: ',
];

View file

@ -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' => 'Удаление провалилось! Ответ сервера: ',
];

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>