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...


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:


return array(
    '{attribute} "{value}" has already been taken.' => '{attribute} "{value}" has already been taken. Login here instead.',
  • Works great. How would I get html to process in there though? Possible? Oct 8 '14 at 19:45
  • Yup... just add it.
    – Brad Bell
    Oct 8 '14 at 19:51
  • Tried that, but I get raw html in the browser, also tried: {{ _self.errorList(account.getErrors('email'))|raw }} as well. Oct 9 '14 at 5:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.