Adjustment for Multilingual Sites
-
Hello,
Your idea of hardcoded/custom captcha error makes the plugin unusable on multilingual sites as there is no easy way to translate it.
At the same time, if we delete the error completely, if the captcha fails, your plugin returns an empty “ERROR:”.
Suggestion: in your .po file there is a string “Please solve Captcha correctly”. Leave the custom error field blank by default and use this text as an error in the frontend if the custom error is empty. In this case, both strings “Please solve Captcha correctly” and “ERROR:” will come from .po and allow multilingual sites to translate them. And you only store the custom error in the db if it is indeed a custom error and not the default text.
Let me know if I am not clear enough 🙂
Thanks!
The topic ‘Adjustment for Multilingual Sites’ is closed to new replies.