From 94b80cfb94363c485ce5804a30c6e8ac6c2674bd Mon Sep 17 00:00:00 2001 From: ANH Date: Wed, 19 Aug 2020 18:27:14 +0300 Subject: [PATCH] add custom-study-must-rename-deck to Fluent --- qt/aqt/customstudy.py | 4 ++-- rslib/ftl/custom-study.ftl | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 rslib/ftl/custom-study.ftl diff --git a/qt/aqt/customstudy.py b/qt/aqt/customstudy.py index 5d789c2b0..1b5debc8e 100644 --- a/qt/aqt/customstudy.py +++ b/qt/aqt/customstudy.py @@ -6,7 +6,7 @@ import aqt from anki.consts import * from anki.lang import _ from aqt.qt import * -from aqt.utils import showInfo, showWarning +from aqt.utils import TR, showInfo, showWarning, tr RADIO_NEW = 1 RADIO_REV = 2 @@ -141,7 +141,7 @@ class CustomStudy(QDialog): cur = self.mw.col.decks.byName(_("Custom Study Session")) if cur: if not cur["dyn"]: - showInfo("Please rename the existing Custom Study deck first.") + showInfo(tr(TR.CUSTOM_STUDY_MUST_RENAME_DECK)) return QDialog.accept(self) else: # safe to empty diff --git a/rslib/ftl/custom-study.ftl b/rslib/ftl/custom-study.ftl new file mode 100644 index 000000000..91c790959 --- /dev/null +++ b/rslib/ftl/custom-study.ftl @@ -0,0 +1 @@ +custom-study-must-rename-deck = Please rename the existing Custom Study deck first.