fixes #2741 - rails 3 syntax
fixes #3248 - added localization to model validation messages _N(validation message)
regex stuff