Missing `emails.incoming.errors` translations

AI-generated summary

Missing emails.incoming.errors translations

tomtjes reported an error in the Admin > Emails > Rejected section with the message “translation missing: en.emails.incoming.errors.old_destination_error”. Upon reviewing the server.en.yml file on Github, it appears that this translation is indeed missing.

gerhard moved the discussion to the bug category and suggested adding a spec or linting rule to ensure that every error in Email::Receiver has a corresponding translation. He also pointed out that other translations may be missing.

JAYT reported a similar issue with a different error message “translation missing: en_GB.emails.incoming.errors.invalid_post” related to an Email::Receiver::InvalidPost error.

In Admin > Emails > Rejected I have an email with the following error:

Error
Email::Receiver::OldDestinationError
translation missing: en.emails.incoming.errors.old_destination_error

While I messed with translations for my site, I think this is not just an issue for me. The server.en.yml on Github seems to indeed lack this translation.

3 Likes

I’m moving this into the Contribute > Bug category, so that it doesn’t get lost.

We should fix this and also, if possible, add a spec or linting rule to ensure that every error in Email::Receiver has a corresponding translation. The note in that file certainly isn’t enough.

Also, we need to check if other translations are missing.

4 Likes

Seeing this from a source of emails that used to work. (A mailing list for the club I run the Discourse instance for.)

Email::Receiver::InvalidPost

translation missing: en_GB.emails.incoming.errors.invalid_post

Any idea what it means? There’s no language translation needed for these posts.