<p>You can do this using Craft's <a href="http://buildwithcraft.com/help/static-translations" rel="nofollow">static translation</a> support.</p>

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

<pre><code>&lt;?php

return array(
    '{attribute} "{value}" has already been taken.' =&gt; '{attribute} "{value}" has already been taken. Login here instead.',
);
</code></pre>

CC BY-SA 3.0
2014-10-08T19:45:56.547Z
Works great. How would I get html to process in there though? Possible?
Simon Clayson
CC BY-SA 3.0
2014-10-08T19:51:46.463Z
Yup... just add it.
Brad Bell
CC BY-SA 3.0
2014-10-09T05:39:35.393Z
Tried that, but I get raw html in the browser, also tried: {{ _self.errorList(account.getErrors('email'))|raw }} as well.
Simon Clayson
CC BY-SA 3.0
2014-10-07T18:47:10.867Z
2014-10-07T18:47:10.867Z
Brad Bell
<p>Where can I edit the error messages for the user registration form e.g for </p>

<pre><code>{% if account is defined %}
    {{ _self.errorList(account.getErrors('email')) }}
{% endif %}
</code></pre>

<p>I want to change this wording:</p>

<p>Email "tom.bowler@mailbox.net" has already been taken.</p>

<p>to something like:</p>

<p>Email "tom.bowler@mailbox.net" has already been taken. Login here instead...</p>

<form><error-templates>
User Registration Form error message customisation
# User Registration Form error message customisation

(Asked by: username_0 on 2014-10-07)

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

**Tags:** form, error-templates

---

## 1 answers

### Answer by username_1 on 2014-10-07. Score: 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:
 '{attribute} "{value}" has already been taken. Login here instead.',
);

> **Comments:**
> **username_0**: Works great. How would I get html to process in there though? Possible?  
> **username_1**: Yup... just add it.  
> **username_0**: Tried that, but I get raw html in the browser, also tried: {{ _self.errorList(account.getErrors('email'))|raw }} as well.  

---

