Give every template its translations, in the plugin's own catalogues, and hold them complete #7
Labels
No labels
bug
documentation
enhancement
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo-templates#7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The list says: "Every template must hold its translations in order to produce multilanguage documents."
What the core does today
locale/is joined to the catalogues when the plugin loads (src/postulo/plugins/locale.pyin the core), andpostulo-messages extractreads the templates inside the package. A template's own words are therefore translated from this plugin's catalogues.section.label). A template translates only the words it adds.Reading
"Hold its translations" is read as: every template's words are in this plugin's catalogues, and every template is complete in every language the plugin ships. The alternative, a catalogue per template, is not how the core loads catalogues and would be a core change; it is not proposed.
What the plugin should do
uv run pytest -m release).pt-BR). Thelocale/directory names are gettext's and made by the tool.Decisions
Needs from the core
Nothing.
Done when
From the list of template improvements of 2026-09-30.
Final decision on translations (maintainer, 2026-10-01)
What this changes here
"Hold them complete" now has a definition, the same as the core's:
Follow-up to the final decision on translations (maintainer, 2026-10-01)
zh-Hans,zh-Hant).The work is postulo/postulo#347.