Merge develop: combine the i18n test fixture with #367

Both batches seed the same block for their English-only additions. One
read and one write now cover the PBS key guidance and the Borg SSH keys
together.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
MacRimi
2026-09-22 19:23:10 +02:00
co-authored by Claude Opus 5
20 changed files with 767 additions and 48 deletions
@@ -115,16 +115,21 @@ class CommandDescriptionsTests(unittest.TestCase):
report["recommendations"].setdefault(
key, source_report["recommendations"][key])
path.write_text(json.dumps(temporary, ensure_ascii=False))
# Model steady-state generation for the six intentional English-only
# Borg additions, in temporary copies only. Keep every other gap visible.
# Model steady state after the bot fills these intentional new
# messages; keep repository locales and all other leaves intact.
if lang != "en":
copied = json.loads(path.read_text())
english = catalog("en")["backup"]
messages = json.loads(path.read_text())
english = catalog("en")
for section, key in (("encryption", "pbsHelp"),
("keyfileActions", "pveKeyDescription")):
messages["backup"][section].setdefault(key, english["backup"][section][key])
for key in ("sshUserHelpMessage", "sshKeyHelpMessage", "sshKeySetupTitle",
"sshKeySetupHelp", "sshAuthorizedKeyHelp"):
copied["backup"]["destinations"].setdefault(key, english["destinations"][key])
copied["backup"]["actions"].setdefault("prepareSshKey", english["actions"]["prepareSshKey"])
path.write_text(json.dumps(copied), encoding="utf-8")
messages["backup"]["destinations"].setdefault(
key, english["backup"]["destinations"][key])
messages["backup"]["actions"].setdefault(
"prepareSshKey", english["backup"]["actions"]["prepareSshKey"])
path.write_text(json.dumps(messages, ensure_ascii=False))
before = {p: p.read_bytes() for p in root.glob("*/common.json")}
argv = [str(SCRIPT), "--source", str(root / "en/common.json"),
"--messages-dir", str(root), "--languages", languages, "--sleep", "0"]