Translation of file count is incorrect

Created on 21 June 2017, about 7 years ago
Updated 5 March 2024, 4 months ago

Problem/Motivation

The view /admin/content/files shows me an incorrect file count.

- Drupal core 8.3.3

The issue is being addressed by preparing translations for each language, changing the translation from 1 to @count.
However, it appears more appropriate to change the original string from a fixed 1 to @count as well.

Steps to reproduce

  • Install Drupal. Specify a language with plurals determined by 1 or more [plural=(n>1)].
    • Ensure the language is specified in the po file description with plural=(n>1).
  • After installation, attach and save an image in the article content.
  • Remove the image from the previously created article content and delete any revisions where the image existed.
  • When viewing /admin/content/files, the translation text equivalent to the singular "1 place" is displayed for "Used in".
    • In languages treating 0 as singular, "1 place" is displayed instead of 0, which is unintended.

Proposed resolution

TBD - required

Remaining tasks

Update issue summary

User interface changes

Before

The image in the example (cow-animals-37411834-1440-900.jpg) was uploaded via files entity browser and was saved as an media entity image. After that, the media entity image was deleted but the view still shows one usage as you can see in the screenshots.


---

API changes

NA

Data model changes

NA

Release notes snippet

NA

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
File systemΒ  β†’

Last updated 1 day ago

Created by

πŸ‡¨πŸ‡­Switzerland handkerchief

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024