Show each language's flag in the language menu #52
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
Postulo/postulo#52
Loading…
Add table
Add a link
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?
Observation
Why
Twenty-four languages is a long list, and the eye finds a flag faster than it reads a name
— particularly a name written in a script the reader does not use.
What exists today
core/languages.pyholdsNATIVE_NAMES, and the picker shows the native name with a noteabout the state of that translation. There is no image in the menu, and there is a reason:
img-src 'self'(config/settings/prod.py), so a flag cannot come from anybody else'sserver, and a set of flag images is a hundred kilobytes of assets for decoration.
Shape
🇫🇷is two code points and no request atall. They render as flags on macOS, iOS, Android and most Linux desktops. Windows shows
the two letters instead — a legible fallback rather than a broken image, and worth
writing down before it is reported as a bug.
from the code:
en-GB→ 🇬🇧 andpt-PT→ 🇵🇹, butel→ 🇬🇷,cs→ 🇨🇿,ga→ 🇮🇪. Forthe EU set every language has one obvious member state, which is what makes this
tractable now — and it will need care when #43 moves past Europe, where Spanish is not
only Spain and Arabic is not one flag.
languages.py, shown in the picker and nowhere else, markedaria-hidden="true"because the name beside it already says what it is.Classification
Enhancement, and a small one. Not breaking.
Depends on
Nothing. #53 needs the same mapping, so whichever lands first should put it where both can
read it.
Open questions
one uncontested home, and nothing at all where it does not. No flag beats a wrong flag.