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.
Hi,
I'm using the module on an international site to expose a form for subscription.
I've enabled the MailChimp Signup module, and enabled the block generated on my footer region.
I'd like to translate the label generated by the module "Email Address" in french. But the string is not available in the translation interface.
It is possible to enable the translation for the fields generated in these forms ?
Screenshot added with my block configuration and its position in my site in the French version.
Comment | File | Size | Author |
---|---|---|---|
#10 | 13082807-10.patch | 407 bytes | samuel.mortenson |
| |||
#5 | translation-for-email-address-label-unavailable-2821153-5.patch | 488 bytes | asrob |
#3 | translation_for_email-2821153-3.patch | 952 bytes | juampynr |
#2 | translation-for-email-address-label-unavailable-2821153-2.patch | 488 bytes | asrob |
screenshot-asplamagnifique.png | 99.44 KB | asplamagnifique |
Comments
Comment #2
asrobAdded a small patch to translate "Email Address" label.
Comment #3
juampynr CreditAttribution: juampynr at Lullabot commentedRe-rolling patch. Works for me after I updated it against 8.x-1.x.
Comment #4
AnybodyPlease see https://www.drupal.org/node/2822227#comment-11836593 for further discussion also.
Comment #5
asrobUpdated my patch.
Comment #7
samuel.mortensonThanks all!
Comment #8
cwarts CreditAttribution: cwarts commentedHello,
i´ve just tested the patch and want to inform you that it doesn´t work.
When i open the subscription form i see the following error message:
"InvalidArgumentException: $string ("Email Address") must be a string. in Drupal\Core\StringTranslation\TranslatableMarkup->__construct() "
Can you plz check this again?
Thanks
Comment #9
samuel.mortensonPutting in needs work for #8, I'll look into this.
Comment #10
samuel.mortenson@cwarts Could you try this patch and let me know if it resolves you issue?
Comment #11
cwarts CreditAttribution: cwarts commentedHi,
i applied the patch in #5 and #10 and now it works :-)
Thank you
Comment #13
samuel.mortenson