fix(translations): per-occurrence speakers in puertas_ciudad, voice clip check

Map Taylor's generic THE FIRST / THE OTHER labels to the group each one
names, rebuild en.json with the config hash, regenerate vn (all 854 voice
clips now play in English) and test that the English tl keeps every clip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Opus 5.5 committed 2026-10-20 17:52:09 +02:00
1 parent a35d8e842c
commit 95aa8a0b10
4 files changed
+26 -6

No files matched your search

+10
View File
@@ -3,6 +3,7 @@
import argparse
import hashlib
import json
import re
import shutil
from pathlib import Path
@@ -208,3 +209,12 @@ def test_from_parsed_annotations():
def test_annotated_data_is_valid():
data = json.loads((ROOT / "data/annotated.json").read_text(encoding="utf-8"))
validate(data, "annotated")
def test_english_translation_keeps_every_voice_clip():
"""The committed English tl plays exactly the clips of the Spanish script."""
clip = re.compile(r'^\s*voice "([^"]+)"$', re.M)
game = ROOT / "vn/game"
spanish = sorted(clip.findall((game / "script.rpy").read_text(encoding="utf-8")))
english = sorted(clip.findall((game / "tl/english/script.rpy").read_text(encoding="utf-8")))
assert spanish and english == spanish