You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def add_textcaptcha_error(too_slow: false)
if too_slow
errors.add(:textcaptcha_answer, :expired, message: "was not submitted quickly enough, try another question instead")
else
errors.add(:textcaptcha_answer, :incorrect, message: "is incorrect, try another question instead")
end
end
The text was updated successfully, but these errors were encountered:
aramollis
changed the title
Error messages are not translatable of the acts_as_textcaptcha gem
Error messages are not translatable
Mar 31, 2022
Thank you for your issue, I agree it should be translatable. I will check if we can override this behaviour or suggest a PR directly on the acts_as_textcaptcha module.
I will notify on this issue when I can work on it !
It seems to be a problem with the translation of some text (error message e.g.) of the module. The values defined in the application are not being used, the translation is taken from the acts_as_textcaptcha gem directly and there the error messages are not translatable: https://github.com/matthutchinson/acts_as_textcaptcha/blob/6aaa8c0c433fa79bc1171a029c85ee1757da301f/lib/acts_as_textcaptcha/textcaptcha.rb#L76-L82
The text was updated successfully, but these errors were encountered: