Permalink
Browse files

How to localize default messages

  • Loading branch information...
1 parent 350d4aa commit 12dda3815f71ea109f0b2397b4a397e3a6f0b9ce @carpodaster committed May 4, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.rdoc
View
@@ -116,6 +116,14 @@ Some of the options available:
end
end
+== I18n support
+reCAPTCHA passes two types of error explanation to a linked model. It will use the I18n gem
+to translate the default error message if I18n is available. To customize the messages to your locale,
+add these keys to your I18n backend:
+
+<tt>recaptcha.errors.verification_failed</tt>:: error message displayed if the captcha words didn't match
+<tt>recaptcha.errors.recaptcha_unavailable</tt>:: displayed if a timout error occured while attempting to verify the captcha
+
== TODO
* Remove Rails/ActionController dependencies
* Framework agnostic

0 comments on commit 12dda38

Please sign in to comment.