Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292194

Remove default colon behind inline labels

$
0
0

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

  1. Create a new field eg., Date in any of the content type.
  2. In the Manage Display, change label to inline.
  3. Create a node with that content type.
  4. Add Greek language in /admin/config/regional/language
  5. 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:

before

After:

after

API changes

None

Data model changes

None

Release notes snippet


Viewing all articles
Browse latest Browse all 292194

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>