mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 22:57:11 -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
|
# Leeches
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
# fixme: update; clear on card transition
|
|
||||||
def onLeech(self, card):
|
def onLeech(self, card):
|
||||||
# for now
|
# for now
|
||||||
tooltip("Card was a leech.")
|
s = _("Card was a leech.")
|
||||||
return
|
if card.queue < 0:
|
||||||
link = aqt.appHelpSite + "Leeches.html"
|
s += " " + _("It has been suspended.")
|
||||||
txt = (_("""\
|
tooltip(s)
|
||||||
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)
|
|
||||||
|
|
||||||
# Context menu
|
# Context menu
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue