mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Merge pull request #739 from ANH25/add-custom-study-ftl
Add custom-study-must-rename-deck to Fluent
This commit is contained in:
commit
75e721f4ad
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
1
rslib/ftl/custom-study.ftl
Normal file
1
rslib/ftl/custom-study.ftl
Normal file
|
@ -0,0 +1 @@
|
|||
custom-study-must-rename-deck = Please rename the existing Custom Study deck first.
|
Loading…
Reference in a new issue