aboutsummaryrefslogtreecommitdiffstats
path: root/claude_logbook/sessions.py
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2026-10-01 18:21:23 -0300
committerElvis Claros Castro <elvis@claros.ar>2026-10-01 18:21:23 -0300
commitd3d0416b45698b9d40700b2196400542dc77c9ce (patch)
tree165188602cb9c2545975b2573bb1906fcbfb7346 /claude_logbook/sessions.py
parentcbf81b04e57e03b9e1b646e0d0b7f7c1fd79acc2 (diff)
downloadclaude-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/sessions.py')
-rw-r--r--claude_logbook/sessions.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/claude_logbook/sessions.py b/claude_logbook/sessions.py
index e4fa9b2..63b4886 100644
--- a/claude_logbook/sessions.py
+++ b/claude_logbook/sessions.py
@@ -142,7 +142,7 @@ def parse_ts(ts):
def read_session(path):
"""Parses a whole .jsonl and returns that session's record."""
- session_id = os.path.basename(path)[:-6] # sin .jsonl
+ session_id = os.path.basename(path)[:-6] # without .jsonl
first_ts = last_ts = cwd = git_branch = version = None
ai_title = fallback_title = None
user_msgs = assistant_msgs = 0
@@ -399,11 +399,11 @@ def pick(sessions, ref):
if 1 <= i <= len(sessions):
return sessions[i - 1]
raise SessionError(
- f"el índice {i} está fuera de rango (hay {len(sessions)})")
+ f"index {i} is out of range (there are {len(sessions)})")
hits = [s for s in sessions if s["id"].startswith(ref.lower())]
if len(hits) == 1:
return hits[0]
if not hits:
- raise SessionError(f"ninguna sesión empieza con '{ref}'")
- raise SessionError(f"'{ref}' es ambiguo, coincide con {len(hits)} sesiones")
+ raise SessionError(f"no session starts with '{ref}'")
+ raise SessionError(f"'{ref}' is ambiguous, it matches {len(hits)} sessions")