# Unable to customize invalid email domain message

**URL:** <https://meta.discourse.org/t/unable-to-customize-invalid-email-domain-message/49134>\
**Category:** Product Support\
**Created:** [Août 24, 2016, 5:53 UTC](https://meta.discourse.org/t/unable-to-customize-invalid-email-domain-message/49134 "2016-08-24T05:53:24Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [Août 24, 2016, 6:38 UTC](https://meta.discourse.org/t/unable-to-customize-invalid-email-domain-message/49134/4 "2016-08-24T06:38:23Z")

</div>

There was something like this with some other text that couldn’t be translated. The problem then was that the `I18n.t` function was being passed a symbol instead of a string. Maybe that’s what is happening here. Doing a search for `user.email.not_allowed` shows that it is being passed as a symbol.

```rb
# email_validator.rb
...
    if record.errors[attribute].blank? && value && ScreenedEmail.should_block?(value)
      record.errors.add(attribute, I18n.t(:'user.email.blocked'))
    end

```

---

_[View the full topic](https://meta.discourse.org/t/unable-to-customize-invalid-email-domain-message/49134)._
