From 32d6248ff1281271a608b44925762d5c79831d6a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 4 Jul 2023 13:38:28 +1000 Subject: [PATCH] Add nothing to undo/redo https://forums.ankiweb.net/t/translation-of-nothing-to-undo/31735 --- ftl/core/actions.ftl | 2 ++ qt/aqt/operations/collection.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ftl/core/actions.ftl b/ftl/core/actions.ftl index 0a1505a17..d7264a74c 100644 --- a/ftl/core/actions.ftl +++ b/ftl/core/actions.ftl @@ -68,3 +68,5 @@ actions-flag-pink = Pink actions-flag-turquoise = Turquoise actions-flag-purple = Purple actions-set-flag = Set Flag +actions-nothing-to-undo = Nothing to undo +actions-nothing-to-redo = Nothing to redo diff --git a/qt/aqt/operations/collection.py b/qt/aqt/operations/collection.py index 2b67f06dd..f93c6e06a 100644 --- a/qt/aqt/operations/collection.py +++ b/qt/aqt/operations/collection.py @@ -60,7 +60,7 @@ def _legacy_undo(*, parent: QWidget) -> None: if result is None: # should not happen - showInfo("nothing to undo", parent=parent) + showInfo(tr.actions_nothing_to_undo(), parent=parent) mw.update_undo_actions() return