Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,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 (`<!-- TRANSLATORS … -->` in templates).

### Accessibility
- Real anchor (`<a href … target="_blank">`) for links, not a JS click handler, so screen
Expand Down
Loading