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

Created on 24 July 2020, almost 4 years ago
Updated 7 June 2023, about 1 year 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 review

Version

9.5

Component
MediaΒ  β†’

Last updated about 16 hours 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.69.0 2024