Document a way to implement error messages.

Using I18n and the #query and #record properties seems like a reasonable way to
make error messages.