mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Make window titles more user-friendly
This commit is contained in:
parent
7eec241c82
commit
1d63253b4f
2 changed files with 22 additions and 6 deletions
|
@ -25,6 +25,5 @@ card-stats-review-log-type-manual = Manual
|
||||||
|
|
||||||
## Window Titles
|
## Window Titles
|
||||||
|
|
||||||
card-stats-browser-card = Browser Card
|
card-stats-current-card = Current Card ({ $context })
|
||||||
card-stats-reviewer-card = Reviewer Card
|
card-stats-previous-card = Previous Card ({ $context })
|
||||||
card-stats-previous-reviewer-card = Previous Reviewer Card
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ from typing import Callable
|
||||||
|
|
||||||
import aqt
|
import aqt
|
||||||
from anki.cards import Card, CardId
|
from anki.cards import Card, CardId
|
||||||
|
from anki.lang import without_unicode_isolation
|
||||||
from aqt.qt import *
|
from aqt.qt import *
|
||||||
from aqt.utils import (
|
from aqt.utils import (
|
||||||
addCloseShortcut,
|
addCloseShortcut,
|
||||||
|
@ -119,16 +120,32 @@ class CardInfoManager:
|
||||||
|
|
||||||
class BrowserCardInfo(CardInfoManager):
|
class BrowserCardInfo(CardInfoManager):
|
||||||
def __init__(self, mw: aqt.AnkiQt):
|
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):
|
class ReviewerCardInfo(CardInfoManager):
|
||||||
def __init__(self, mw: aqt.AnkiQt):
|
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):
|
class PreviousReviewerCardInfo(CardInfoManager):
|
||||||
def __init__(self, mw: aqt.AnkiQt):
|
def __init__(self, mw: aqt.AnkiQt):
|
||||||
super().__init__(
|
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 a new issue