fixes #2741 - remove dash from -%> to %>
fixes #2741 - rails 3 syntax
fixes #3248 - missing N_() on validation messages
fixes #3249 - change regex syntax from start/end of line to start/end of string