From b35a11ffd643ee66d6b23b8e3dfffd8647bb1247 Mon Sep 17 00:00:00 2001 From: chandraiyengar <87870920+chandraiyengar@users.noreply.github.com> Date: Thu, 12 Oct 2023 04:34:52 +0100 Subject: [PATCH] Add profile name in profile deletion confirmation message (#2722) * Add profile name in profile deletion confirmation message * Update contributors * leave old translation and add new one --- CONTRIBUTORS | 1 + ftl/qt/qt-misc.ftl | 1 + qt/aqt/main.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 34d815bb8..b53bd39d1 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -144,6 +144,7 @@ Michael Eliachevitch Carlo Quick Dominique Martinet Virinci +chandraiyengar ******************** diff --git a/ftl/qt/qt-misc.ftl b/ftl/qt/qt-misc.ftl index 192eb6d52..fc31a78bb 100644 --- a/ftl/qt/qt-misc.ftl +++ b/ftl/qt/qt-misc.ftl @@ -1,6 +1,7 @@ qt-misc-addon-will-be-installed-when-a = Add-on will be installed when a profile is opened. qt-misc-addons = Add-ons qt-misc-all-cards-notes-and-media-for = All cards, notes, and media for this profile will be deleted. Are you sure? +qt-misc-all-cards-notes-and-media-for2 = All cards, notes, and media for the profile "{ $name }" will be deleted. Are you sure? qt-misc-anki-updatedanki-has-been-released =

Anki Updated

Anki { $val } has been released.

qt-misc-automatic-syncing-and-backups-have-been = Automatic syncing and backups have been disabled while restoring. To enable them again, close the profile or restart Anki. qt-misc-back-side-only = Back Side Only diff --git a/qt/aqt/main.py b/qt/aqt/main.py index b65d448f8..57b124d15 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -411,7 +411,7 @@ class AnkiQt(QMainWindow): return # sure? if not askUser( - tr.qt_misc_all_cards_notes_and_media_for(), + tr.qt_misc_all_cards_notes_and_media_for2(name=self.pm.name), msgfunc=QMessageBox.warning, defaultno=True, ):