Follow-up to #2702669: Add plural labels to Entity Types in Aggregator module

Problem/Motivation

As it has been introduced in #1850080: Entity type labels lack plurality, cannot generate UI text based on label if plural is needed now we have a way to specify plural label for any entity type. Let's do it for Image module.

Proposed resolution

Add plural labels to all entity types defined by Image module. More information can be found in the change record: https://www.drupal.org/node/2689949

Remaining tasks

Write the patch.

User interface changes

Nope.

API changes

Nope.

Data model changes

Nope.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vdanielpop created an issue. See original summary.

vdanielpop’s picture

Issue tags: +DCTransylvania
vdanielpop’s picture

Assigned: vdanielpop » Unassigned
Status: Active » Needs review
FileSize
695 bytes
bojanz’s picture

Status: Needs review » Needs work

Thanks!

+ *   label_singular = @Translation("image style item"),
+ *   label_plural = @Translation("image style items"),
+ *   label_count = @PluralTranslation(
+ *     singular = "@count image style item",
+ *     plural = "@count image style items"
+ *   ),

Why did we add the word "item"? I don't think we need it.
What we do need is a trailing comma on the plural line.

vdanielpop’s picture

Status: Needs work » Needs review
FileSize
676 bytes

You're right, I wasn't paying enough attention.

bojanz’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, thanks.

xjm’s picture

Status: Reviewed & tested by the community » Closed (duplicate)
Related issues: +#2702683: Add plural labels to entity types

Hi DCTransilvania contributors and others -- can you please comment on #2702683: Add plural labels to entity types to receive credit? Splitting up patches per-module is not ideal in most cases, especially for a single, simple change, so let's use a combined patch. Thank you!

rosinegrean’s picture

Issue tags: -DCTransylvania