untranslated text should not cause mismatches
This commit is contained in:
parent
f1141d9926
commit
03005d6769
1 changed files with 4 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue