From 7fb261c90b4b782afd68234e2d5de26c4ad345fc Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 27 Sep 2024 19:36:52 +1000 Subject: [PATCH] Backup warning needs a new string We need a new key, as we've introduced a variable. Missed this in the PR review. --- ftl/qt/qt-misc.ftl | 3 ++- qt/aqt/main.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ftl/qt/qt-misc.ftl b/ftl/qt/qt-misc.ftl index 1f13b1c02..8cacbfd3f 100644 --- a/ftl/qt/qt-misc.ftl +++ b/ftl/qt/qt-misc.ftl @@ -38,7 +38,7 @@ qt-misc-please-select-1-card = (please select 1 card) qt-misc-please-select-a-deck = Please select a deck. qt-misc-please-use-fileimport-to-import-this = Please use File>Import to import this file. qt-misc-processing = Processing... -qt-misc-replace-your-collection-with-an-earlier = Replace your collection with an earlier backup from { $val }? +qt-misc-replace-your-collection-with-an-earlier2 = Replace your collection with an earlier backup from { $val }? qt-misc-revert-to-backup = Revert to backup # please do not change the quote character, and please only change the font name if you have confirmed the new name is a valid Windows font qt-misc-segoe-ui = "Segoe UI" @@ -77,3 +77,4 @@ qt-misc-layout-horizontal-enabled = Horizontal layout enabled ## deprecated- these strings will be removed in the future, and do not need ## to be translated +qt-misc-replace-your-collection-with-an-earlier = Replace your collection with an earlier backup? diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 370bb812c..2936d7969 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -445,7 +445,7 @@ class AnkiQt(QMainWindow): def do_open(path: str) -> None: if not askUser( - tr.qt_misc_replace_your_collection_with_an_earlier( + tr.qt_misc_replace_your_collection_with_an_earlier2( os.path.basename(path) ), msgfunc=QMessageBox.warning,