untranslated text should not cause mismatches

This commit is contained in:
dazedanon 2025-10-24 14:57:07 -05:00
parent f1141d9926
commit 03005d6769

View file

@ -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):