Make media source dropdown menu options translatable

Created on 23 May 2023, over 1 year ago
Updated 31 May 2023, over 1 year ago

Problem/Motivation

Entity Browser using Media Library integration has a dropdown allowing to select between DAM assets and assets uploaded directly to Drupal instance. Although dropdown label is translatable individual options aren't and they are hardcoded as "Choose value", "DAM" and "Media Types".

Steps to reproduce

When module installation and configuration is completed open Entity Browser for the Image field with at least two media types included. Non-english UIs are showing english strings:

Proposed resolution

Amend addSourceMenu() funciton in https://git.drupalcode.org/project/acquia_dam/-/blob/1.0.x/src/AssetLibr... to construct menu options using translated strings, e.g. t('Media Types') instead of simple string

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jura.khrapunov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024