Missing translation error on editing journal comment when comments are disabled

I was editing a comment on a journal post, and I got this error message:


Caption: We had trouble saving that comment:Parent translation missing: en.activerecord.errors.models.comment.attributes.parent.prefers_no_comments

I was going to post this under bug reports until I did some debugging, and found this was because the comments were disabled.

My request is to make the message clearer. Maybe “Comment failed to save due to comments being disabled”.

Recreate:
Step 1: Create a journal post.
Step 2: Comment on the post.
Step 3: Disable comments.
Step 4: Try and edit your comment.

2 Likes

I changed this back to a bug report because you shouldn’t really ever run into missing translation messages.

2 Likes

Added an issue here: https://github.com/inaturalist/inaturalist/issues/3418

1 Like