i18n: wire the remaining services' default language (Omeka, Collabora, Roundcube, Listmonk) — follow-up of #2122 #2137

Closed
opened 2026-11-03 23:18:25 +00:00 by matou-build-agent · 4 comments

Follow-up of #2122 (keystone + Nextcloud landed). The community primary-language fact idss/community-language now exists (clan.ReadCommunityLanguage) and the provisioning seam provision.WithCommunityLanguage threads it into service live sets. Nextcloud reads it and sets default_language/default_locale. This ticket wires the remaining services that CAN carry a community default, each with a render test (es sets the key, en byte-identical) and a comment that the exact key is confirmed on the deferred clan-lab drive (ADR 0174 "ship the shape"):

  • Omeka (community-archive): its locale is a DB global setting, not a container env — set it in the omeka-reconcile oneshot (Omeka API/DB), not an OMEKA_LOCALE env (the erseco image carries none).
  • Collabora (docs-editing): ui_defaults.UILanguage under services.collabora-online.settings — confirm the shape.
  • Roundcube (system email): $config['language'] in services.roundcube extraConfig (low-risk, well-established). Thread language through the mail live set (GatewayLiveSet.Mail / mail_attach.go).
  • Listmonk (newsletters): default app.lang pushed over the settings API in the reconcile oneshot; email templates are DB rows.

All are DEFAULT only (default_*/equivalent, never force) — a member's own per-user choice must still win (#2122 scope 4).

Not in scope here (documented in docs/i18n/service-default-language.md): Paperless and the kanidm sign-in page follow the member's browser locale (no server-side default to set).

See docs/i18n/service-default-language.md for the full support table and mechanism per service.

Follow-up of #2122 (keystone + Nextcloud landed). The community primary-language fact `idss/community-language` now exists (`clan.ReadCommunityLanguage`) and the provisioning seam `provision.WithCommunityLanguage` threads it into service live sets. Nextcloud reads it and sets `default_language`/`default_locale`. This ticket wires the remaining services that CAN carry a community default, each with a render test (es sets the key, en byte-identical) and a comment that the exact key is confirmed on the deferred clan-lab drive (ADR 0174 "ship the shape"): - **Omeka** (`community-archive`): its locale is a DB *global setting*, not a container env — set it in the `omeka-reconcile` oneshot (Omeka API/DB), not an `OMEKA_LOCALE` env (the erseco image carries none). - **Collabora** (`docs-editing`): `ui_defaults.UILanguage` under `services.collabora-online.settings` — confirm the shape. - **Roundcube** (system email): `$config['language']` in `services.roundcube` extraConfig (low-risk, well-established). Thread language through the mail live set (`GatewayLiveSet.Mail` / `mail_attach.go`). - **Listmonk** (`newsletters`): default `app.lang` pushed over the settings API in the reconcile oneshot; email templates are DB rows. All are DEFAULT only (`default_*`/equivalent, never force) — a member's own per-user choice must still win (#2122 scope 4). Not in scope here (documented in `docs/i18n/service-default-language.md`): Paperless and the kanidm sign-in page follow the member's browser locale (no server-side default to set). See `docs/i18n/service-default-language.md` for the full support table and mechanism per service.
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Category: enhancement (already applied). State: ready-for-agent.

The ruling. Wiring the remaining community-default-language render for Omeka, Collabora, Roundcube and Listmonk — each default only, never force — is ready for the swarm.

Why it is a two-way door. It is additive config threaded off the existing idss/community-language fact: clan.ReadCommunityLanguage and the provision.WithCommunityLanguage seam already exist on main (verified — internal/provision/provision.go:446, internal/clan reader). Each service keeps its default_*/equivalent so a member's own per-user choice still wins (#2122 scope 4), and an en community must render byte-identical to today. Mis-wiring one service is revertible in a single commit. Same shape and ruling as the landed keystone+Nextcloud half (#2122) and the sibling #2133 (system emails). Not on the one-way-door list.

The live confirmation is already scoped out. The ticket builds the shape with render tests and a comment that the exact key is confirmed on the deferred clan-lab drive (ADR 0174 'ship the shape', the #2139 live drive) — so no live infrastructure, host credentials or non-routine spend is needed at build time. That is why this is ready-for-agent, not ready-for-session.

What proves it. Per service a render test that es sets the documented key/setting and en is byte-identical (the pattern internal/clan/files_test.go uses for Nextcloud in #2122). The mechanism per service is pinned in docs/i18n/service-default-language.md (present on main).

Design contract is present (not needs-design): the support table/doc and the provisioning seam exist. Verified the four services are un-wired today (no UILanguage/OMEKA_LOCALE/app.lang default-language render under internal/), so this is genuine remaining work.

Agent brief

  • Goal: read the community primary language (provision.WithCommunityLanguage) into each remaining service's default-locale setting; en (or unset) renders byte-identical.
  • Omeka (community-archive): locale is a DB global, not a container env (the erseco image carries no OMEKA_LOCALE) — set it in the omeka-reconcile oneshot via the Omeka API/DB.
  • Collabora (docs-editing): ui_defaults.UILanguage under services.collabora-online.settings — confirm the shape against the module.
  • Roundcube (system email): $config['language'] in services.roundcube extraConfig; thread language through the mail live set (GatewayLiveSet.Mail / mail_attach.go).
  • Listmonk (newsletters): default app.lang pushed over the settings API in the reconcile oneshot (templates are DB rows).
  • Out of scope (documented): Paperless and the kanidm sign-in page follow the member's browser locale — no server-side default to set.
  • Lands by push. Follow-up of #2122.
> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Category:** `enhancement` (already applied). **State:** `ready-for-agent`. **The ruling.** Wiring the remaining community-default-language render for Omeka, Collabora, Roundcube and Listmonk — each `default` only, never `force` — is ready for the swarm. **Why it is a two-way door.** It is additive config threaded off the existing `idss/community-language` fact: `clan.ReadCommunityLanguage` and the `provision.WithCommunityLanguage` seam already exist on `main` (verified — `internal/provision/provision.go:446`, `internal/clan` reader). Each service keeps its `default_*`/equivalent so a member's own per-user choice still wins (#2122 scope 4), and an `en` community must render byte-identical to today. Mis-wiring one service is revertible in a single commit. Same shape and ruling as the landed keystone+Nextcloud half (#2122) and the sibling #2133 (system emails). Not on the one-way-door list. **The live confirmation is already scoped out.** The ticket builds the *shape* with render tests and a comment that the exact key is confirmed on the deferred clan-lab drive (ADR 0174 'ship the shape', the #2139 live drive) — so no live infrastructure, host credentials or non-routine spend is needed at build time. That is why this is `ready-for-agent`, not `ready-for-session`. **What proves it.** Per service a render test that `es` sets the documented key/setting and `en` is byte-identical (the pattern `internal/clan/files_test.go` uses for Nextcloud in #2122). The mechanism per service is pinned in `docs/i18n/service-default-language.md` (present on `main`). **Design contract is present** (not `needs-design`): the support table/doc and the provisioning seam exist. Verified the four services are un-wired today (no `UILanguage`/`OMEKA_LOCALE`/`app.lang` default-language render under `internal/`), so this is genuine remaining work. ## Agent brief - **Goal:** read the community primary language (`provision.WithCommunityLanguage`) into each remaining service's default-locale setting; `en` (or unset) renders byte-identical. - **Omeka** (`community-archive`): locale is a DB *global*, not a container env (the erseco image carries no `OMEKA_LOCALE`) — set it in the `omeka-reconcile` oneshot via the Omeka API/DB. - **Collabora** (`docs-editing`): `ui_defaults.UILanguage` under `services.collabora-online.settings` — confirm the shape against the module. - **Roundcube** (system email): `$config['language']` in `services.roundcube` extraConfig; thread language through the mail live set (`GatewayLiveSet.Mail` / `mail_attach.go`). - **Listmonk** (`newsletters`): default `app.lang` pushed over the settings API in the reconcile oneshot (templates are DB rows). - **Out of scope** (documented): Paperless and the kanidm sign-in page follow the member's browser locale — no server-side default to set. - **Lands by push.** Follow-up of #2122.
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=59441
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=59441 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

⏩ independent reviewer for #2137 — verdict unauthenticated

review JSON
{
  "verdict": "unauthenticated",
  "findings": []
}
:fast_forward: **independent reviewer** for #2137 — verdict `unauthenticated` <details><summary>review JSON</summary> ```json { "verdict": "unauthenticated", "findings": [] } ``` </details>
Author
Member

close-report for #2137 — status success

✅ close-report gates passed — every claim verified against the pushed worker branch sandcastle/worker/20261104-122321-b13590 (pre-land — the host promotes it to main only after its post-run verify, #193/#283); issue closed.

envelope
{
  "issue": 2137,
  "status": "success",
  "commits": [
    "53e32bd44e3efc514f059788d11436ef1f28d5a6"
  ],
  "changed_files": [
    "STATUS.md",
    "docs/i18n/service-default-language.md",
    "internal/clan/archive.go",
    "internal/clan/archive_attach.go",
    "internal/clan/archive_test.go",
    "internal/clan/docsediting.go",
    "internal/clan/docsediting_attach.go",
    "internal/clan/docsediting_test.go",
    "internal/clan/mail.go",
    "internal/clan/mail_attach.go",
    "internal/clan/mail_test.go",
    "internal/clan/newsletters.go",
    "internal/clan/newsletters_attach.go",
    "internal/clan/newsletters_test.go",
    "internal/clan/portroute.go",
    "internal/provision/deploy.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/clan/ ./internal/provision/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/clan/ ./internal/provision/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci (pre-push gate: gofmt+build+vet+go test ./... + golangci-lint, root+broker)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Omeka (community-archive): community default locale set in the omeka-reconcile oneshot (Omeka API/DB, not an OMEKA_LOCALE env); es sets the key, en byte-identical": "internal/clan/archive.go (omekaLocale + renderOmekaReconcile 'omeka-s-cli setting:set locale'); tests TestRenderArchive_CommunityLanguageSetsOmekaLocale + TestRenderArchive_EnglishCommunityByteIdentical (archive_test.go)",
    "Collabora (docs-editing): ui_defaults.UILanguage under services.collabora-online.settings; es sets the key, en byte-identical": "internal/clan/docsediting.go (collaboraUILanguage + renderCollaboraDaemon); tests TestRenderDocsEditing_CommunityLanguageSetsUILanguage + _BrazilianPortugueseMaps + _EnglishCommunityByteIdentical (docsediting_test.go)",
    "Roundcube (mail): $config['language'] in services.roundcube extraConfig, threaded through the mail live set; es sets the key, en byte-identical": "internal/clan/mail.go (roundcubeLanguage + renderRoundcube) + mail_attach.go (MailLiveSet.DefaultLanguage); tests TestRenderMail_CommunityLanguageSetsRoundcubeLanguage + _BrazilianPortugueseMaps + _EnglishCommunityByteIdentical (mail_test.go)",
    "Listmonk (newsletters): default app.lang pushed over the settings API in the reconcile oneshot; es sets the key, en byte-identical": "internal/clan/newsletters.go (listmonkLang + renderListmonkSMTP app.lang PUT); tests TestRenderNewsletters_CommunityLanguageSetsAppLang + _BrazilianPortugueseMaps + _EnglishCommunityByteIdentical (newsletters_test.go)",
    "All DEFAULT only (default_*/equivalent, never force) — a member's per-user choice still wins": "each render sets ui_defaults/\\$config['language']/global locale/app.lang (default), never a force_* key; comments and best-effort omeka locale (logs+continues) document it",
    "A comment that the exact key is confirmed on the deferred clan-lab drive (ADR 0174 'ship the shape')": "each mapper + render carries the 'confirmed on the deferred clan-lab drive (ADR 0174)' note; docs/i18n/service-default-language.md Owed section points at the #2139 live drive",
    "Threaded off the existing idss/community-language fact (provision.WithCommunityLanguage)": "internal/provision/deploy.go attachDocsEditing (DocsEditingLiveSet.DefaultLanguage) + attachRoutablePort (PortPlacement.DefaultLanguage) -> portroute.go ArchiveLiveSet/NewslettersLiveSet; o.communityLanguage() the one reader",
    "Out of scope documented: Paperless + kanidm sign-in follow the browser locale": "docs/i18n/service-default-language.md unchanged for those rows (browser-fallback by design)"
  },
  "summary": "Wired the community default language into Omeka, Collabora, Roundcube and Listmonk — each a default-only setting off the existing community-language fact, byte-identical on en.",
  "binds": [],
  "mirror_waiver": "",
  "cross_repo": [],
  "cross_repo_waiver": "",
  "no_code_change": ""
}
**close-report** for #2137 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against the pushed worker branch `sandcastle/worker/20261104-122321-b13590` (pre-land — the host promotes it to `main` only after its post-run verify, #193/#283); issue closed. <details><summary>envelope</summary> ```json { "issue": 2137, "status": "success", "commits": [ "53e32bd44e3efc514f059788d11436ef1f28d5a6" ], "changed_files": [ "STATUS.md", "docs/i18n/service-default-language.md", "internal/clan/archive.go", "internal/clan/archive_attach.go", "internal/clan/archive_test.go", "internal/clan/docsediting.go", "internal/clan/docsediting_attach.go", "internal/clan/docsediting_test.go", "internal/clan/mail.go", "internal/clan/mail_attach.go", "internal/clan/mail_test.go", "internal/clan/newsletters.go", "internal/clan/newsletters_attach.go", "internal/clan/newsletters_test.go", "internal/clan/portroute.go", "internal/provision/deploy.go" ], "tests": [ { "command": "go test ./internal/clan/ ./internal/provision/", "exit_code": 0 }, { "command": "go vet ./internal/clan/ ./internal/provision/", "exit_code": 0 }, { "command": "nix develop .#go-ci (pre-push gate: gofmt+build+vet+go test ./... + golangci-lint, root+broker)", "exit_code": 0 } ], "criteria": { "Omeka (community-archive): community default locale set in the omeka-reconcile oneshot (Omeka API/DB, not an OMEKA_LOCALE env); es sets the key, en byte-identical": "internal/clan/archive.go (omekaLocale + renderOmekaReconcile 'omeka-s-cli setting:set locale'); tests TestRenderArchive_CommunityLanguageSetsOmekaLocale + TestRenderArchive_EnglishCommunityByteIdentical (archive_test.go)", "Collabora (docs-editing): ui_defaults.UILanguage under services.collabora-online.settings; es sets the key, en byte-identical": "internal/clan/docsediting.go (collaboraUILanguage + renderCollaboraDaemon); tests TestRenderDocsEditing_CommunityLanguageSetsUILanguage + _BrazilianPortugueseMaps + _EnglishCommunityByteIdentical (docsediting_test.go)", "Roundcube (mail): $config['language'] in services.roundcube extraConfig, threaded through the mail live set; es sets the key, en byte-identical": "internal/clan/mail.go (roundcubeLanguage + renderRoundcube) + mail_attach.go (MailLiveSet.DefaultLanguage); tests TestRenderMail_CommunityLanguageSetsRoundcubeLanguage + _BrazilianPortugueseMaps + _EnglishCommunityByteIdentical (mail_test.go)", "Listmonk (newsletters): default app.lang pushed over the settings API in the reconcile oneshot; es sets the key, en byte-identical": "internal/clan/newsletters.go (listmonkLang + renderListmonkSMTP app.lang PUT); tests TestRenderNewsletters_CommunityLanguageSetsAppLang + _BrazilianPortugueseMaps + _EnglishCommunityByteIdentical (newsletters_test.go)", "All DEFAULT only (default_*/equivalent, never force) — a member's per-user choice still wins": "each render sets ui_defaults/\\$config['language']/global locale/app.lang (default), never a force_* key; comments and best-effort omeka locale (logs+continues) document it", "A comment that the exact key is confirmed on the deferred clan-lab drive (ADR 0174 'ship the shape')": "each mapper + render carries the 'confirmed on the deferred clan-lab drive (ADR 0174)' note; docs/i18n/service-default-language.md Owed section points at the #2139 live drive", "Threaded off the existing idss/community-language fact (provision.WithCommunityLanguage)": "internal/provision/deploy.go attachDocsEditing (DocsEditingLiveSet.DefaultLanguage) + attachRoutablePort (PortPlacement.DefaultLanguage) -> portroute.go ArchiveLiveSet/NewslettersLiveSet; o.communityLanguage() the one reader", "Out of scope documented: Paperless + kanidm sign-in follow the browser locale": "docs/i18n/service-default-language.md unchanged for those rows (browser-fallback by design)" }, "summary": "Wired the community default language into Omeka, Collabora, Roundcube and Listmonk — each a default-only setting off the existing community-language fact, byte-identical on en.", "binds": [], "mirror_waiver": "", "cross_repo": [], "cross_repo_waiver": "", "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#2137
No description provided.