Created on 24 January 2025, about 1 month ago
Updated 2 February 2025, 22 days ago

Issue: Drupal Not Translating a Custom Error Message in mrr.module

I have modified the mrr.module file to adjust an error notification message, ensuring that it is translatable and properly recognized as a string by Drupal.

The string appears in Drupal's translation interface (Configuration > Regional and language > User interface translation).
The module functions correctly otherwise.
However, the string does not get translated on the frontend.
I have already tried the following troubleshooting steps:

Ensured the string is wrapped in the t() function.
Cleared caches (drush cache:rebuild).
Verified that the Locale module is enabled.
Checked that the translation exists in Drupalโ€™s UI translation settings.
Used drush locale-check and drush locale-update.
Ensured that the string is not being passed dynamically to t() (e.g., avoiding t($message) where $message is a variable).
Despite these efforts, the string remains untranslated. Has anyone encountered a similar issue, or is there something I might be missing?
https://materada.com/it/prenota-ora. Error when checking too much persons.

๐Ÿ“Œ Task
Status

Needs work

Component

Community Content

Created by

Live updates comments and jobs are added and updated live.
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