From 03005d6769c521f9d300ea21f1bfcb4089ae722b Mon Sep 17 00:00:00 2001 From: dazedanon Date: Fri, 24 Oct 2025 14:57:07 -0500 Subject: [PATCH] untranslated text should not cause mismatches --- util/translation.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/util/translation.py b/util/translation.py index 8ac35cf..671a2bf 100644 --- a/util/translation.py +++ b/util/translation.py @@ -700,13 +700,14 @@ def translateAI(text, history, fullPromptFlag, config, filename=None, pbar=None, # Check 2: Untranslated content else: + # Set translations first (line count matches) + final_translations = extracted + + # Then check for untranslated content as a warning, not a blocker for line in extracted: if re.search(config.langRegex, str(line)): is_valid = False break - - if is_valid: - final_translations = extracted else: # Check for untranslated content in single string if re.search(config.langRegex, cleaned_text):