The Published check box description text currently says

"A boolean indicating whether the node is published."

Let's change this to just say...

"Published."

with no description.

It reminds me of this issue: #2350013: Descriptions for Promotion Options are too technical

I think the string lives here:
https://api.drupal.org/api/drupal/core!modules!node!src!Entity!Node.php/...

Nope, it's moved! It lives here now:
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityPubl...

Comments

kattekrab created an issue. See original summary.

joachim’s picture

Removing the technical term 'boolean' is a good idea, but also, I think that checkboxes can seem a bit ambiguous with a label that's an action rather than a state.

kattekrab’s picture

I looked back at Drupal7 and just like promoted and sticky... it was just the word, and on or off, so I reckon that would be better here too.

eg.
☑ Published.

kattekrab’s picture

Issue summary: View changes
StatusFileSize
new772 bytes

Here's a patch.

kattekrab’s picture

Status: Active » Needs review

Dear testbot, please test my patch.

larowlan’s picture

+++ b/core/lib/Drupal/Core/Entity/EntityPublishedTrait.php
@@ -33,8 +33,7 @@ public static function publishedBaseFieldDefinitions(EntityTypeInterface $entity
+      ->setLabel(new TranslatableMarkup('Published'))

suggestion 'Whether or not the item is published'?

my 2c

also, yellow bikeshed

But yeah, anything is better than what we have now

kattekrab’s picture

Yellow is my favourite colour @larowlan :-)

dinesh18’s picture

Status: Needs review » Active

Hello,

I don't think so it is required to change the description. It seems to sound understandable with the word boolean.

joachim’s picture

The point is to get rid of the term 'boolean', which many end-users won't know.

The label and description set here are what ends up in the form for the entity.

dinesh18’s picture

We can use #4 patch if we need to get rid of the word "boolean".
It seems to be short and meaningful.

kattekrab’s picture

Status: Active » Needs review

Setting this back to needs review.

kattekrab’s picture

Title: Change "Published" status description to more user friendly text » Remove "Published" status description to align with "Promoted" and "Sticky at top of lists"

I've changed the title of the issue to make it clearer where this ended up.

Not changing the description, removing it entirely, as was done for "Promoted" and "Sticky at top of lists".

kattekrab’s picture

Issue summary: View changes
kattekrab’s picture

StatusFileSize
new4.86 KB
new3.11 KB
kattekrab’s picture

So... what else does this need?

Anyone else willing to review and either give feedback, or RTBC?

gábor hojtsy’s picture

Looks good. What would this do to existing sites? Is the metadata updated there automatically?

kattekrab’s picture

Good question.

I have no idea. And no idea how we would even check that.

berdir’s picture

This is fine on existing sites apart from being a string change, obviously. As commented in #2068063: Change "Save and keep un-/published" buttons to a "Published" checkbox and an included "Save" button, I would recommend to merge this into that, as we already make pat of the change generically and the other half just for node.

kattekrab’s picture

Status: Needs review » Closed (duplicate)