Skip to content

Commit 027eec6

Browse files
committed
docs(l10n): add AI agent instructions for updating po/XX.po files
Add a new section in the AI Agents chapter to provide clear instructions for updating language-specific PO files. The improved documentation significantly reduces both model interaction rounds and execution time. Performance evaluation using qwen model: git-po-helper agent-test --runs=5 --agent=qwen update-po Benchmark results (5-run average): Before After Improvement Turns: 18 7 -61% Exec time: 42s 18s -57% Turn range: 5-24 3-13 Time range: 13s-65s 11s-26s The optimization makes agent workflows more efficient and reduces API costs by minimizing unnecessary LLM interactions and file content checks. Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
1 parent 81ac806 commit 027eec6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

po/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,21 @@ When asked to "update po/git.pot" or similar requests:
480480
The command will handle all necessary steps including file creation or
481481
update automatically.
482482

483+
### Updating po/XX.po
484+
485+
When asked to "update po/XX.po" or similar requests (where XX is a
486+
language code):
487+
488+
1. **Directly execute** the command `make po-update PO_FILE=po/XX.po`
489+
without reading or checking the file content beforehand.
490+
491+
2. **Do not verify** the updated file after execution. Simply run the
492+
command and consider the task complete.
493+
494+
The command will handle all necessary steps including generating
495+
"po/git.pot" and merging new translatable strings into "po/XX.po"
496+
automatically.
497+
483498

484499
[git-po-helper/README]: https://github.com/git-l10n/git-po-helper#readme
485500
[Documentation/SubmittingPatches]: Documentation/SubmittingPatches

0 commit comments

Comments
 (0)