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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jibus’s picture

Patch attached

Jibus’s picture

Reroll, forgot to add a t() to the initial value

Jibus’s picture

ewww ..broken link

ParisLiakos’s picture

Status: Active » Needs review
ParisLiakos’s picture

Status: Needs review » Reviewed & tested by the community

thanks!

ParisLiakos’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Dinf’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta8

After 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?

Jibus’s picture

Weird, it works for me.

Did you try to clear the cache ?