Improve resource element error messages, add missing tr() calls.