Attempting to customize the text of invalid email domain message. I’ve tried changing every other text block on both the login page and popup, and everything else works. Not sure if this is a bug, or somehow possibly related to a subfolder install (highly doubt it).
AI-generated summary
A user, jomaxro, reported an inability to customize the “invalid email domain” message despite successfully modifying other text blocks. They suspected a bug or subfolder installation issue, noting that the translation key user.email.not_allowed appeared in the UI but did not respond to changes 1, 3. Falco identified the specific key, while simon hypothesized that the I18n.t function was receiving a symbol instead of a string, preventing translation. zogstrip confirmed this issue and pushed a fix to support both string and symbol keys. After updating to the latest version, jomaxro confirmed the problem was resolved.
The key is user.email.not_allowed
Right, look at screenshot 1 (zoomed in for screenshot 2) above, I changed that key.
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.
# email_validator.rb
...
if record.errors[attribute].blank? && value && ScreenedEmail.should_block?(value)
record.errors.add(attribute, I18n.t(:'user.email.blocked'))
end
Just pushed a fix to support both string and symbol as key for translations ![]()
https://github.com/discourse/discourse/commit/038eb6f645b55e984fb8c4e3980b1d4aae018d32
@jomaxro would you mind updating to latest and trying again?

