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.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

apereira23 created an issue. See original summary.

ruby232’s picture

Assigned: Unassigned » pponcedeleona

pponcedeleona made their first commit to this issue’s fork.

jleon1110’s picture

I have reviewed the proposed solution.
It resolves the issue correctly, and I believe it is ready to be merged.

ruby232’s picture

Status: Active » Fixed
ruby232’s picture

Status: Fixed » Closed (fixed)