Hardcoded strings missing translation in Lite Youtube module

Created on 9 June 2025, about 2 months ago

Problem/Motivation

Certain strings in the Lite Youtube module are hardcoded and do not utilize Drupal's translation system. This impacts internationalization (i18n) and makes it difficult to localize the module for non-English users.
Example:

'youtube_video_play' => 'Play',

Steps to reproduce

  • Inspect the codebase of the Lite Youtube module.
  • Identify hardcoded strings that do not use Drupal's `t()` function or translation system.
  • Attempt to translate the module into another language and observe untranslated strings.

Proposed resolution

  • Replace all hardcoded strings with the `t()` function or other relevant Drupal translation mechanisms.
  • Review all settings, UI strings, and comments to ensure they are translatable.

Remaining tasks

  • Audit the module for all hardcoded strings.
  • Refactor code to use `t()` for translatable strings
  • Test the module in different languages to confirm translations are applied.

User interface changes

None expected, as this change affects only the translatability of strings.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΎUruguay apereira23

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024