Make window titles more user-friendly
This commit is contained in:
parent
7eec241c82
commit
1d63253b4f
@ -25,6 +25,5 @@ card-stats-review-log-type-manual = Manual
|
||||
|
||||
## Window Titles
|
||||
|
||||
card-stats-browser-card = Browser Card
|
||||
card-stats-reviewer-card = Reviewer Card
|
||||
card-stats-previous-reviewer-card = Previous Reviewer Card
|
||||
card-stats-current-card = Current Card ({ $context })
|
||||
card-stats-previous-card = Previous Card ({ $context })
|
||||
|
@ -7,6 +7,7 @@ from typing import Callable
|
||||
|
||||
import aqt
|
||||
from anki.cards import Card, CardId
|
||||
from anki.lang import without_unicode_isolation
|
||||
from aqt.qt import *
|
||||
from aqt.utils import (
|
||||
addCloseShortcut,
|
||||
@ -119,16 +120,32 @@ class CardInfoManager:
|
||||
|
||||
class BrowserCardInfo(CardInfoManager):
|
||||
def __init__(self, mw: aqt.AnkiQt):
|
||||
super().__init__(mw, "revlog", tr.card_stats_browser_card())
|
||||
super().__init__(
|
||||
mw,
|
||||
"revlog",
|
||||
without_unicode_isolation(
|
||||
tr.card_stats_current_card(context=tr.qt_misc_browse())
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
class ReviewerCardInfo(CardInfoManager):
|
||||
def __init__(self, mw: aqt.AnkiQt):
|
||||
super().__init__(mw, "reviewerCardInfo", tr.card_stats_reviewer_card())
|
||||
super().__init__(
|
||||
mw,
|
||||
"reviewerCardInfo",
|
||||
without_unicode_isolation(
|
||||
tr.card_stats_current_card(context=tr.decks_study())
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
class PreviousReviewerCardInfo(CardInfoManager):
|
||||
def __init__(self, mw: aqt.AnkiQt):
|
||||
super().__init__(
|
||||
mw, "previousReviewerCardInfo", tr.card_stats_previous_reviewer_card()
|
||||
mw,
|
||||
"previousReviewerCardInfo",
|
||||
without_unicode_isolation(
|
||||
tr.card_stats_previous_card(context=tr.decks_study())
|
||||
),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user