Gettext Validation/Error localization problems

Is there a way to turn off ruby-gettext’s feature that localizes the
default validation/error messages in models? If I use gettext in my
application, it breaks almost all of my unit tests.


“Default validation/error messages are also localized automatically.”

I’ve managed to fix the problems for the time being.
I’ve had to make the following change on the majority of the
assertions in my unit tests, but it got the job done:

assert @cp.errors[:package] == “can’t be blank”
assert @cp.errors[:package] == “%{fn} can’t be blank”

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs