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.
How can I translate the subscription block and its field descriptions?
Email Address
First Name
Last Name
Submit
My site default language is Japanese, but when I search the "User interface translation" page, none of these strings appear.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2667782-mailchimp-translate-interface.patch | 1.08 KB | jamievereecken |
Comments
Comment #2
ptmkenny CreditAttribution: ptmkenny commentedThe fields have to be translated from within MailChimp itself (on the MailChimp website, under Lists -> Settings -> List fields and merge tags).
After changing this, go to the lists page in Drupal (admin/config/services/mailchimp/lists), refresh the lists, clear the Drupal cache, and then you can add a signup block with the translated fields.
Comment #4
jamievereecken CreditAttribution: jamievereecken as a volunteer commentedThe field label creation had a placeholder in the t() function. This caused the field labels to not be present in the translate interface section.
Following patch fixes that issue by removing the placeholder.
Comment #5
devad CreditAttribution: devad as a volunteer commentedJust help. The Submit button and confirmation message are translatable through Drupal 8 Configuration Translation.
Comment #6
timme77 CreditAttribution: timme77 commentedI'm trying to translate my sign up form and I've managed to translate "Email Address" and "Submit" through "User interface translation". However "First Name" and "Last Name" are not in the list. What am I missing here?
Comment #7
timme77 CreditAttribution: timme77 commentedFixed it by unticking my fields in /admin/config/services/mailchimp/signup/mailchimp. If anyone encounters this issue, this is your fix.