mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 14:47:12 -05:00
make leech msg translatable
This commit is contained in:
parent
1510584cdd
commit
8e3093005e
1 changed files with 4 additions and 10 deletions
|
|
@ -560,18 +560,12 @@ function showAnswer(txt) {
|
|||
# Leeches
|
||||
##########################################################################
|
||||
|
||||
# fixme: update; clear on card transition
|
||||
def onLeech(self, card):
|
||||
# for now
|
||||
tooltip("Card was a leech.")
|
||||
return
|
||||
link = aqt.appHelpSite + "Leeches.html"
|
||||
txt = (_("""\
|
||||
Card was a <a href="%s">leech</a>.""") % link)
|
||||
if isLeech and self.deck.db.scalar(
|
||||
"select 1 from cards where id = :id and type < 0", id=cardId):
|
||||
txt += _(" It has been suspended.")
|
||||
self.setNotice(txt)
|
||||
s = _("Card was a leech.")
|
||||
if card.queue < 0:
|
||||
s += " " + _("It has been suspended.")
|
||||
tooltip(s)
|
||||
|
||||
# Context menu
|
||||
##########################################################################
|
||||
|
|
|
|||
Loading…
Reference in a new issue