4

Where can I edit the error messages for the user registration form e.g for

{% if account is defined %}
    {{ _self.errorList(account.getErrors('email')) }}
{% endif %}

I want to change this wording:

Email "tom.bowler@mailbox.net" has already been taken.

to something like:

Email "tom.bowler@mailbox.net" has already been taken. Login here instead...

Brad Bell
  • 67,440
  • 6
  • 73
  • 143
Simon Clayson
  • 611
  • 3
  • 11

1 Answers1

2

You can do this using Craft's static translation support.

For example, if your site is using en_us for its primary locale, then add a craft/translations/en_us.php file that has this in it:

<?php

return array(
    '{attribute} "{value}" has already been taken.' => '{attribute} "{value}" has already been taken. Login here instead.',
);
Brad Bell
  • 67,440
  • 6
  • 73
  • 143