Refactor #9707 Translate error messages
http://tracker.modx.com/issues/9707