From d2865235df7833389f28009505aff00989ccad9b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 16 Jan 2020 21:05:29 +1000 Subject: [PATCH] i18n --- pylib/anki/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylib/anki/collection.py b/pylib/anki/collection.py index beeb4f7a3..10c658f84 100644 --- a/pylib/anki/collection.py +++ b/pylib/anki/collection.py @@ -675,7 +675,7 @@ where c.nid = n.id and c.id in %s group by nid""" try: qatext = render_card(self, qfmt, afmt, fields, card_ord) except anki.rsbackend.BackendException as e: - errmsg = f"Card template has a problem:
{e}" + errmsg = _("Card template has a problem:") + f"
{e}" qatext = (errmsg, errmsg) ret: Dict[str, Any] = dict(q=qatext[0], a=qatext[1], id=card_id)