Problem/Motivation
The formatter adds a default colon behind the inline label, as example in in date fields.
This is bad practice. In some languages, like Greek, colon is not even used.
If people want colon on their labels, they can easily add it themselves.
Check this comment;
#67211-41: Show colon after form title only when there is no other punctuation
And what happens when you have a label with other punctuations, like questions marks?
#67211: Show colon after form title only when there is no other punctuation
Steps to reproduce
- Create a new field eg., Date in any of the content type.
- In the Manage Display, change label to inline.
- Create a node with that content type.
- Add Greek language in
/admin/config/regional/language
- Open the newly created node in Greek
/el/
, there will be a colon ':' after the label.
Proposed resolution
Do something like add it in PHP/twig as a translatable string + context then let people translate it to empty string. See #22.
Remaining tasks
Create a follow up, see #22.
Test
Review
User interface changes
Before:
After:
API changes
None
Data model changes
None