Hold the drafts left out of the catalogues to a per-language ratchet (#910) #1076
No reviewers
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo!1076
Loading…
Reference in a new issue
No description provided.
Delete branch "910-draft-ratchet"
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?
A draft that fails a check -- a lost placeholder, a plural form that drops the count, broken
markup -- is not compiled, so the page shows it in English. Nothing counted them: Weblate's
LibreTranslate add-on once left 1,684, and a new one was one more warning line among many.
messages.py checknow counts them per catalogue set and language and compares the countswith src/postulo/locale/excluded-drafts.txt, one
<set> <language> <count>line each, a pairnot listed being zero (so a plugin repository without the file is held at zero). More than
recorded fails the check, naming the language and both numbers; it runs in CI on every pull
request, Weblate's included. Fewer than recorded is printed with the line to write, but does
not fail: the fix arrives in Weblate's pull request, which carries only catalogues, so the
commit after it lowers the number. The baseline is today's: ur 51, sw 19, id 1.
docs/TRANSLATING.md no longer says Weblate drafts new strings by machine (the add-on is off):
a new or changed string waits for a speaker, and the ratchet is described under The tool.
The 71 drafts themselves are Weblate work for speakers of Urdu, Swahili and Indonesian, so
the issue stays open for them.
Refs #910
Notes for review
messages.py checkcounts, per catalogue set and language, the drafts left out of the.mofiles, and compares them withsrc/postulo/locale/excluded-drafts.txt(todaypostulo id 1,postulo sw 19,postulo ur 51)..pofiles, is what brings the fixes.docs/TRANSLATING.mdno longer says Weblate drafts by machine (four places), and it describes the ratchet.checkwhen it repins, until it commits its ownlocale/excluded-drafts.txt.🤖 Generated with Claude Code
765710db5a9c72e146fa9c72e146fad04675dc89