diff --git a/AGENTS.md b/AGENTS.md index 390ec651f4..c9c00bb961 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -185,11 +185,15 @@ the same things — but the author should not need the bot to learn them. dropped by mistake. ### Internationalization +Follow the [translation guidelines](https://docs.nextcloud.com/server/latest/developer_manual/basics/translations.html) +of the developer manual. - Wrap every user-facing string, **including aria-labels**, in `t('mail', …)`. Use one string with placeholders — never concatenate translated fragments (translators reorder words). Use `n('mail', …)` with a `%n` placeholder for counts. Never compare against a hard-coded English string or use a translated string as a key. No HTML inside a translation string — translate the plain parts and HTML-encode the inserts. +- Give an ambiguous string, for example `Share` as verb or noun, a `// TRANSLATORS …` + comment on its own line directly above it (`` in templates). ### Accessibility - Real anchor (``) for links, not a JS click handler, so screen