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.
By default, the value in the email input form is: user@example.com
My website is not in english, it would be convenient to add a javaScript localization function to the input value (newsletter.js). This way, admin can add a translation or override the value through String Overrides
Comment | File | Size | Author |
---|---|---|---|
#3 | javascript_localization-1650436-3.patch | 1.6 KB | Jibus |
#2 | javascript_localization-1650436-#3.patch | 1.6 KB | Jibus |
#1 | javascript_localization-1650436-#2.patch | 763 bytes | Jibus |
Comments
Comment #1
Jibus CreditAttribution: Jibus commentedPatch attached
Comment #2
Jibus CreditAttribution: Jibus commentedReroll, forgot to add a t() to the initial value
Comment #3
Jibus CreditAttribution: Jibus commentedewww ..broken link
Comment #4
ParisLiakos CreditAttribution: ParisLiakos commentedComment #5
ParisLiakos CreditAttribution: ParisLiakos commentedthanks!
Comment #6
ParisLiakos CreditAttribution: ParisLiakos commentedcommited
Comment #8
Dinf CreditAttribution: Dinf commentedAfter i patched the translation works fine, but when i click in the field, the text remains.
When it was "user@example.com", the text disappeared when i put the cursor in the textfield. Did i do something wrong?
Comment #9
Jibus CreditAttribution: Jibus commentedWeird, it works for me.
Did you try to clear the cache ?