Repository navigation
docs(agents): link the translation guidelines - #14115
Conversation
|
/backport to stable5.13 |
|
Note: Asking the desktop team how they handle it, as we heard they handle it very well. Otherwise it should only contain the link and some major bullet points (context, etc.). |
|
Claude and other AI agents don't read the link by default. That means we must do some duplication here. I've cut it down to a smaller base now. Extensive checking must be done in a CI step. |
51b109e to
dd51c80
Compare
ChristophWurst
left a comment
There was a problem hiding this comment.
IMO this is too verbose and duplicating the developer manual section.
Can we try with a shorter paragraph and the link to the docs?
|
I see the point, but I think some duplication is needed here. Agents load AGENTS.md into their context, but usually open the pages it links to only when asked to, or when the task makes them look something up. Writing a user-facing string rarely does, so with only a link, the agent doesn't see the guidelines. The agent docs recommend the same:
That's why the PR lists the main points again: the rules that agents get wrong most often. The developer manual stays the source of truth, and the section links to it. If you think one of the points isn't worth repeating, I'm happy to drop it. Assisted by ClaudeCode:claude-opus-5-5 |
|
I'm still not convinced. By that rule we would have to duplicate all of the dev manual into the agents file. |
Agents didn't follow the translation guidelines for new strings, and nothing in the code states the rules for the English text. The section now links the guidelines and adds the one rule no lint can check: a TRANSLATORS comment for an ambiguous string. The mechanical rules are left to the lint-source-strings check from nextcloud/docker-ci#1035. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: David Dreschner <david.dreschner@nextcloud.com>
8839b35 to
5b1a8ad
Compare
|
Not the whole manual, only what agents can't pick up from the code. They learn the API from the surrounding code, since every string already goes through
Those rules are going into the lint, so an agent gets them as annotations on its PR, like everyone else:
So I've cut the section down to the link and one bullet, 4 lines in total. The bullet is about context hints: agents can't tell from the code which strings are ambiguous, and no lint can check that. Once both PRs are merged and the translations image is published, I'll add the workflow to Mail. Assisted by ClaudeCode:claude-opus-5-5 |
|
@ChristophWurst: Is it okay for you in the current state? |
Agents didn't follow the translation guidelines when writing new strings. The Internationalization section of
AGENTS.mdnow links the guidelines and adds the one rule agents can't pick up from the code: aTRANSLATORScomment for ambiguous strings.The mechanical rules (ellipsis, quotes, contractions, placeholders, plurals, comment placement) are checked by a lint instead:
🤖 AI (if applicable)