Not possible to translate "items selected" strings in media library

Created on 24 July 2020, over 4 years ago
Updated 16 September 2024, 3 months ago

Problem/Motivation

Correct me if I am wrong, but it seems impossible to translate the "...items selected" from the media_library.ui.js file.

I guess this is the line(?):

Drupal.formatPlural(currentSelection.length, '1 item selected', '@count items selected') : Drupal.formatPlural(remaining, '@selected of @count item selected', '@selected of @count items selected'

Steps to reproduce

  • Create multilingual site.
  • Enable media library module.
  • Add media file and choose "unlimited" items
  • Go to /admin/config/regional/translate and search for "items selected" or "item selected"
πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
MediaΒ  β†’

Last updated 1 day ago

Created by

πŸ‡©πŸ‡°Denmark robotjox

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • 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

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.71.5 2024