From 9ea5f1eb32f8b388d7d13afd2bd3290a351780a8 Mon Sep 17 00:00:00 2001
From: Robozinho <65715921+RobozinhoD@users.noreply.github.com>
Date: Sat, 12 Oct 2024 06:37:41 -0300
Subject: [PATCH] replace string with backend version
---
.../src/main/java/com/ichi2/anki/cardviewer/TypeAnswer.kt | 4 ++--
AnkiDroid/src/main/res/values/02-strings.xml | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/AnkiDroid/src/main/java/com/ichi2/anki/cardviewer/TypeAnswer.kt b/AnkiDroid/src/main/java/com/ichi2/anki/cardviewer/TypeAnswer.kt
index 33f2c77a3fa4..f096a5933674 100644
--- a/AnkiDroid/src/main/java/com/ichi2/anki/cardviewer/TypeAnswer.kt
+++ b/AnkiDroid/src/main/java/com/ichi2/anki/cardviewer/TypeAnswer.kt
@@ -62,7 +62,7 @@ class TypeAnswer(
/**
* Optional warning for when a typed answer can't be displayed
*
- * * empty card [R.string.empty_card_warning]
+ * * empty card
* * unknown field specified [R.string.unknown_type_field_warning]
* */
var warning: String? = null
@@ -118,7 +118,7 @@ class TypeAnswer(
when (correct) {
null -> {
warning = if (clozeIdx != 0) {
- res.getString(R.string.empty_card_warning)
+ CollectionManager.TR.cardTemplateRenderingEmptyFront()
} else {
res.getString(R.string.unknown_type_field_warning, fldTag)
}
diff --git a/AnkiDroid/src/main/res/values/02-strings.xml b/AnkiDroid/src/main/res/values/02-strings.xml
index f38a9e4c5052..3146b2a72918 100644
--- a/AnkiDroid/src/main/res/values/02-strings.xml
+++ b/AnkiDroid/src/main/res/values/02-strings.xml
@@ -115,7 +115,6 @@
Check database
Check media
Empty cards
- This card is empty. Use the “Empty cards” option from the menu on the deck list screen.
Type answer: unknown field %s
Deleting deck…