use translation for attribute for replaceAfter and replaceBefore
Merge pull request #3707 from GrahamCampbell/4.1-validator

[4.1] Validator After Before