Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Some administration form elements use strings instead of using t()
. As a result, not all administration form titles and descriptions can be localized.
Proposed resolution
Use the
\Drupal\Core\StringTranslation\StringTranslationTrait $this->t()
so strings can be localized.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
The administrative interface may appear localized when opened in a language other than English.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|
Comments
Comment #2
idebr CreditAttribution: idebr commentedComment #3
SchnWalter CreditAttribution: SchnWalter as a volunteer and commentedIf you are referring to the title and description for the mailchimp_signup config entities, then the
mailchimp_signup.mailchimp_signup.*
schema should be updated to use text instead of strings.I'll provide a patch, soon.
Comment #4
SchnWalter CreditAttribution: SchnWalter as a volunteer and commentedApplying this patch will make all string on the "Signup Forms" (admin/config/services/mailchimp/signup) configuration entities translatable.
Comment #5
SchnWalter CreditAttribution: SchnWalter as a volunteer and commentedPlease ignore previous patch.
Comment #6
samuel.mortensonIt looks like this change already happened in 8.x-1.x, I'm guessing from another issue.