A CV's page says “What is on this cv”, and lowercases the noun in every language #168
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.
Dependencies
No dependencies set.
Reference
Postulo/postulo#168
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
Found while measuring a CV's page for #165. The heading above a CV's entries is built by putting the kind's label, lowercased, into a sentence:
(
templates/documents/cv_detail.html, added with portfolios in #133,29b85e0a.)What it prints, on every CV's page:
What is wrong with it
|loweris English typography applied to every language. It flattens an acronym (CV) in English, French and Portuguese, and in German, where every noun is capitalised, it makes a spelling mistake.What fixing it is
Two sentences, chosen by kind in the template:
This retires
What is on this %(kind)sand adds two strings to every catalogue, filled in the 39 European ones and flaggeddraft. Grep the templates for otherget_…_display|lowerinside a sentence while you are there.Classification
Bug, internationalisation. Visible in English on every CV's page, so before 0.3.0 rather than after.
Landed on
mainas789f0d9d4, the way this issue proposed: two sentences chosen bykind, What is on this CV and What is on this portfolio. The
ifis exact rather than aguess --
CV.kinddraws onCVKind, which has precisely those two values; theplugin-extensible registry is for uploads and renders, not this model. Filled in French and
both Portuguese catalogues, flagged draft; the rest carry empty slots until the release
sweep.
What is on this %(kind)sis retired.The grep this issue asked for found the same
|lowertwice more, both fixed the sameway -- the label as the catalogue wrote it:
mistake; the line reads
65,000 · Per yearnow, a middle dot instead of brackets so thecapitalised label reads as a label;
My shelf: Archived).And a guard:
tests/test_template_lint.pynow fails any template that applies|lowertoa
get_…_display, so this class of bug cannot return through a new template.