fix(monitor): clarify BORG key guidance

This commit is contained in:
martino
2026-09-22 19:00:29 +02:00
parent 976998806c
commit 56d51dd461
6 changed files with 390 additions and 7 deletions
@@ -115,6 +115,16 @@ 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.
if lang != "en":
copied = json.loads(path.read_text())
english = catalog("en")["backup"]
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")
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"]