From bfbab8b498578b87c0cef784998940fdeeb4e206 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 17 Jul 2020 15:06:14 +1000 Subject: [PATCH] i18n downgrade&quit button --- qt/aqt/main.py | 1 + qt/designer/profiles.ui | 2 +- qt/ftl/profiles.ftl | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 0b8b16ab8..be5c84a38 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -232,6 +232,7 @@ class AnkiQt(QMainWindow): qconnect(f.profiles.currentRowChanged, self.onProfileRowChange) f.statusbar.setVisible(False) qconnect(f.downgrade_button.clicked, self._on_downgrade) + f.downgrade_button.setText(tr(TR.PROFILES_DOWNGRADE_AND_QUIT)) # enter key opens profile QShortcut(QKeySequence("Return"), d, activated=self.onOpenProfile) # type: ignore self.refreshProfilesList() diff --git a/qt/designer/profiles.ui b/qt/designer/profiles.ui index df24d557d..064302bd1 100644 --- a/qt/designer/profiles.ui +++ b/qt/designer/profiles.ui @@ -91,7 +91,7 @@ - Downgrade && Quit + DOWNGRADE diff --git a/qt/ftl/profiles.ftl b/qt/ftl/profiles.ftl index f9114a58e..261b10397 100644 --- a/qt/ftl/profiles.ftl +++ b/qt/ftl/profiles.ftl @@ -4,3 +4,6 @@ profiles-folder-readme = please see: {$link} + +# will appear as 'Downgrade & Quit' +profiles-downgrade-and-quit = Downgrade && Quit