From b4cf5b57fa25529580fa32e4867f6ca893f6bbbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 21 Jun 2026 15:10:39 +0200 Subject: [PATCH] Translate Swal buttons --- assets/helpers/swal.js | 5 ++++- translations/frontend.cs.xlf | 18 ++++++++++++++++++ translations/frontend.da.xlf | 18 ++++++++++++++++++ translations/frontend.de.xlf | 18 ++++++++++++++++++ translations/frontend.el.xlf | 18 ++++++++++++++++++ translations/frontend.en.xlf | 18 ++++++++++++++++++ translations/frontend.es.xlf | 18 ++++++++++++++++++ translations/frontend.fr.xlf | 18 ++++++++++++++++++ translations/frontend.hu.xlf | 18 ++++++++++++++++++ translations/frontend.it.xlf | 18 ++++++++++++++++++ translations/frontend.ja.xlf | 18 ++++++++++++++++++ translations/frontend.nl.xlf | 18 ++++++++++++++++++ translations/frontend.pl.xlf | 18 ++++++++++++++++++ translations/frontend.pt_BR.xlf | 18 ++++++++++++++++++ translations/frontend.ru.xlf | 18 ++++++++++++++++++ translations/frontend.uk.xlf | 18 ++++++++++++++++++ translations/frontend.zh.xlf | 18 ++++++++++++++++++ 17 files changed, 292 insertions(+), 1 deletion(-) diff --git a/assets/helpers/swal.js b/assets/helpers/swal.js index d468f59c..e370a9ed 100644 --- a/assets/helpers/swal.js +++ b/assets/helpers/swal.js @@ -20,11 +20,14 @@ import Swal from 'sweetalert2'; import 'sweetalert2/themes/bootstrap-5.css'; import '../css/components/swal.css' - +import { trans } from '../translator'; const BaseSwal = Swal.mixin({ position: "top", theme: "bootstrap-5", + confirmButtonText: trans('dialog.btn.ok'), + cancelButtonText: trans('dialog.btn.cancel'), + denyButtonText: trans('dialog.btn.deny'), }); const ConfirmSwal = BaseSwal.mixin({ diff --git a/translations/frontend.cs.xlf b/translations/frontend.cs.xlf index 4ba1f913..6417033b 100644 --- a/translations/frontend.cs.xlf +++ b/translations/frontend.cs.xlf @@ -55,5 +55,23 @@ Jdi! + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + Zrušit + + + + + dialog.btn.deny + Ne + + diff --git a/translations/frontend.da.xlf b/translations/frontend.da.xlf index 4b6a15b9..817c703f 100644 --- a/translations/frontend.da.xlf +++ b/translations/frontend.da.xlf @@ -55,5 +55,23 @@ Kom nu! + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + Annuller + + + + + dialog.btn.deny + Nej + + diff --git a/translations/frontend.de.xlf b/translations/frontend.de.xlf index 9ebd0d32..6a4e7786 100644 --- a/translations/frontend.de.xlf +++ b/translations/frontend.de.xlf @@ -55,5 +55,23 @@ Los! + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + Abbrechen + + + + + dialog.btn.deny + Nein + + diff --git a/translations/frontend.el.xlf b/translations/frontend.el.xlf index bab41358..fff724d2 100644 --- a/translations/frontend.el.xlf +++ b/translations/frontend.el.xlf @@ -7,5 +7,23 @@ Αναζήτηση + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + Ακύρωση + + + + + dialog.btn.deny + Όχι + + \ No newline at end of file diff --git a/translations/frontend.en.xlf b/translations/frontend.en.xlf index 3c71f7c4..7f68558a 100644 --- a/translations/frontend.en.xlf +++ b/translations/frontend.en.xlf @@ -61,5 +61,23 @@ Estimated time to crack: %time% + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + Cancel + + + + + dialog.btn.deny + No + + diff --git a/translations/frontend.es.xlf b/translations/frontend.es.xlf index 7d339959..02c52715 100644 --- a/translations/frontend.es.xlf +++ b/translations/frontend.es.xlf @@ -55,5 +55,23 @@ ¡Vamos! + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + Cancelar + + + + + dialog.btn.deny + No + + diff --git a/translations/frontend.fr.xlf b/translations/frontend.fr.xlf index 5ebfca51..2a459052 100644 --- a/translations/frontend.fr.xlf +++ b/translations/frontend.fr.xlf @@ -55,5 +55,23 @@ Rechercher ! + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + Annuler + + + + + dialog.btn.deny + Non + + diff --git a/translations/frontend.hu.xlf b/translations/frontend.hu.xlf index c303dedc..7724ce66 100644 --- a/translations/frontend.hu.xlf +++ b/translations/frontend.hu.xlf @@ -55,5 +55,23 @@ Indítás! + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + Mégse + + + + + dialog.btn.deny + Nem + + diff --git a/translations/frontend.it.xlf b/translations/frontend.it.xlf index f163e3e2..c13ab47a 100644 --- a/translations/frontend.it.xlf +++ b/translations/frontend.it.xlf @@ -55,5 +55,23 @@ Cerca! + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + Annulla + + + + + dialog.btn.deny + No + + diff --git a/translations/frontend.ja.xlf b/translations/frontend.ja.xlf index 90ffdf5f..d8612e5b 100644 --- a/translations/frontend.ja.xlf +++ b/translations/frontend.ja.xlf @@ -19,5 +19,23 @@ 検索 + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + キャンセル + + + + + dialog.btn.deny + いいえ + + \ No newline at end of file diff --git a/translations/frontend.nl.xlf b/translations/frontend.nl.xlf index d14f5a81..4c90e933 100644 --- a/translations/frontend.nl.xlf +++ b/translations/frontend.nl.xlf @@ -55,5 +55,23 @@ Ga! + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + Annuleren + + + + + dialog.btn.deny + Nee + + diff --git a/translations/frontend.pl.xlf b/translations/frontend.pl.xlf index fface684..e748286c 100644 --- a/translations/frontend.pl.xlf +++ b/translations/frontend.pl.xlf @@ -55,5 +55,23 @@ Idź! + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + Anuluj + + + + + dialog.btn.deny + Nie + + diff --git a/translations/frontend.pt_BR.xlf b/translations/frontend.pt_BR.xlf index fb2f2335..9053c8c3 100644 --- a/translations/frontend.pt_BR.xlf +++ b/translations/frontend.pt_BR.xlf @@ -55,5 +55,23 @@ Vá! + + + dialog.btn.ok + OK + + + + + dialog.btn.cancel + Cancelar + + + + + dialog.btn.deny + Não + + diff --git a/translations/frontend.ru.xlf b/translations/frontend.ru.xlf index f4665a74..6e1879d8 100644 --- a/translations/frontend.ru.xlf +++ b/translations/frontend.ru.xlf @@ -55,5 +55,23 @@ Поехали! + + + dialog.btn.ok + ОК + + + + + dialog.btn.cancel + Отмена + + + + + dialog.btn.deny + Нет + + diff --git a/translations/frontend.uk.xlf b/translations/frontend.uk.xlf index fee1b03e..a28941fa 100644 --- a/translations/frontend.uk.xlf +++ b/translations/frontend.uk.xlf @@ -55,5 +55,23 @@ Почати! + + + dialog.btn.ok + ОК + + + + + dialog.btn.cancel + Скасувати + + + + + dialog.btn.deny + Ні + + diff --git a/translations/frontend.zh.xlf b/translations/frontend.zh.xlf index 8bb063b8..7425b1e8 100644 --- a/translations/frontend.zh.xlf +++ b/translations/frontend.zh.xlf @@ -55,5 +55,23 @@ GO! + + + dialog.btn.ok + 确定 + + + + + dialog.btn.cancel + 取消 + + + + + dialog.btn.deny + + +