diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2026-10-01 18:21:23 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2026-10-01 18:21:23 -0300 |
| commit | d3d0416b45698b9d40700b2196400542dc77c9ce (patch) | |
| tree | 165188602cb9c2545975b2573bb1906fcbfb7346 /claude_logbook/memory.py | |
| parent | cbf81b04e57e03b9e1b646e0d0b7f7c1fd79acc2 (diff) | |
| download | claude-logbook-d3d0416b45698b9d40700b2196400542dc77c9ce.tar.gz claude-logbook-d3d0416b45698b9d40700b2196400542dc77c9ce.zip | |
Translate the CLI, the HTML page and the tests to English
Everything the user sees is now in English: help text and examples, table
headers, messages and errors, month names and relative dates, and every
string in the generated page. Tests, fixtures, workflow comments and
.gitignore follow. README.es.md stays as a Spanish translation of the docs.
Visible changes:
- --html writes sessions.html by default (sesiones.html stays ignored).
- The delete prompt is [y/N] and no longer accepts "s"/"si".
- The page stores the theme under cl-theme, so it is chosen again once.
- --check report keys and the --html summary keys are now English.
The --json format is unchanged.
Version 1.2.0.
Diffstat (limited to 'claude_logbook/memory.py')
| -rw-r--r-- | claude_logbook/memory.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/claude_logbook/memory.py b/claude_logbook/memory.py index 955628c..a1b027d 100644 --- a/claude_logbook/memory.py +++ b/claude_logbook/memory.py @@ -192,7 +192,7 @@ def pick(memories, ref): if 1 <= i <= len(memories): return memories[i - 1] raise SessionError( - f"el índice {i} está fuera de rango (hay {len(memories)} memorias)") + f"index {i} is out of range (there are {len(memories)} memories)") needle = ref.lower() hits = [m for m in memories if m["name"].lower().startswith(needle)] @@ -201,10 +201,10 @@ def pick(memories, ref): if len(hits) == 1: return hits[0] if not hits: - raise SessionError(f"ninguna memoria coincide con '{ref}'") + raise SessionError(f"no memory matches '{ref}'") name_list = ", ".join(m["name"] for m in hits[:4]) raise SessionError( - f"'{ref}' es ambiguo, coincide con {len(hits)}: {name_list}" + f"'{ref}' is ambiguous, it matches {len(hits)}: {name_list}" + (", …" if len(hits) > 4 else "")) @@ -216,20 +216,20 @@ def audit(memories, sessions, root=None): session_ids = {s["id"] for s in sessions} report = { - "sin_indice": [m for m in memories if not m["hix"]], - "sin_listar": [m for m in memories if m["hix"] and not m["ix"]], - "enlaces_rotos": [(m, link) for m in memories + "no_index": [m for m in memories if not m["hix"]], + "unlisted": [m for m in memories if m["hix"] and not m["ix"]], + "broken_links": [(m, link) for m in memories for link in m["ln"] if link not in known], - "origen_perdido": [m for m in memories + "lost_source": [m for m in memories if m["src"] and m["src"] not in session_ids], - "indice_fantasma": [], + "ghost_entries": [], } for project_dir in sorted({m["project_dir"] for m in memories if m["hix"]}): real = {m["file"][:-3] for m in memories if m["project_dir"] == project_dir} for missing in sorted(read_index(project_dir, root) - real): - report["indice_fantasma"].append((project_dir, missing)) + report["ghost_entries"].append((project_dir, missing)) return report |