README: the languages as a table with their flags, generated from the language registry #937
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#937
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 README's In your language section is a hand-kept bulleted list that has fallen behind the languages Postulo actually has. Make it a table with each language's flag, the same flags the app's language picker draws, and generate it from the language registry so it cannot fall behind again.
What exists today
README.md, In your language, lists 38 languages as bullets:**own name** — one sentence saying what Postulo is, in that language. These are the EU's official languages and the rest of Europe.d70365523).core/languages.py(NATIVE_NAMES) or with what is actually translated.What would change
1. Each language with its flag
src/postulo/static/flags/are what the language picker uses, and they render everywhere:<img src="src/postulo/static/flags/fr.svg" width="20" height="15" alt="">.FLAG_COUNTRIES. A language is not a country, and the mapping already says so:ES-CT), Basque the Basque Country's (ES-PV), Welsh Wales's (GB-WLS);ar,ee,ff,ha,ig,ln,om,ss,st,sw,ti,tn,yo) get an empty cell. "No flag beats a wrong flag."2. A table instead of bullets
langattribute where the renderer allows it, and the sentence.3. Generated, never hand-kept
scripts/readme_languages.py, or amessages.pysubcommand. It writes the section between two marker comments, from:NATIVE_NAMESandFLAG_COUNTRIES;status.json/languages.begun()decide). A scaffolded but empty catalogue is not listed.extract --checkkeeps the catalogues current.Related
#88 (flags as SVG, not emoji pairs), #936 (README badges), #347 (each release's language list).