Self-updating translation system for OpenClaw maintains domain glossaries automatically

Core translation system
A Python script wraps the Kimi2.5 API to translate .srt subtitle files while preserving block indices, timestamps, and segmentation. The script loads project profiles from projects/<name>/ folders containing three key files:
glossary.json— locked term mappings for specific spellings of names, competition names, and technical jargonstyle.md— voice guidelines, formatting rules, and cultural notesmemory.jsonl— accumulated context from previous translations
During translation, the script enforces locked terms before delivery. A QA gate validates SRT structure for no overlaps, increasing timecodes, and no stray indices.
Self-updating glossary system
A cron job runs every 6 hours, scanning official source sites in all languages. It extracts new terminology candidates, compares them against existing glossary entries, and appends deltas to glossary_deltas.jsonl. This allows the glossary to grow organically as the domain evolves, capturing official names, emerging terminology, or shifting institutional language without manual review cycles.
The system also maintains a separate knowledge base file with context snapshots—recent news, official communications, and product updates—which feeds back into translation quality by providing current context to the model.
Usage and results
Usage command:
python3 scripts/translate_srt.py \
--input source.srt \
--output output.en.srt \
--to English \
--project clientnameLocked terms get normalized in a post-process pass, then structural QA runs before file delivery. The system runs headless: file in, translated file out, with glossary silently updating in the background.
Results include consistent terminology across 100+ subtitle files, no drift in name spellings or technical vocabulary, and fresh context without manual source monitoring.
📖 Read the full source: r/openclaw
👀 See Also

DeepSeek Reasonix: Native Coding Agent with High Caching and Low Cost
Reasonix is a DeepSeek-native AI coding agent for the terminal, focusing on high caching efficiency and low inference cost.

OpenClaw Skill Connects Agents to Knods.io UI for Workflow Creation
A developer has built an OpenClaw skill that enables agents to understand and create workflows within the Knods.io UI, allowing users to switch between specific agents like brand-specific ones instead of relying on Knods' built-in agent.

SIDJUA V1.0: Self-Hosted Governance Platform for AI Agents
SIDJUA V1.0 is a free, self-hosted governance platform for AI agents that runs on Docker, including Raspberry Pi. It provides mandatory checkpoints for agent tasks, encrypted credential storage, network isolation, and granular budget controls.

Open Source Skill for Parallel AI Coding Agents with Human Gate
A markdown skill definition for running parallel Claude Code agents in separate git worktrees, with integration branch validation, smoke tests, and a hard human gate before production merge.