{"id":13445552,"date":"2020-09-23T18:49:47","date_gmt":"2020-09-23T18:49:47","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/adjustment-for-multilingual-sites\/"},"modified":"2020-09-23T18:49:47","modified_gmt":"2020-09-23T18:49:47","slug":"adjustment-for-multilingual-sites","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/adjustment-for-multilingual-sites\/","title":{"rendered":"Adjustment for Multilingual Sites"},"content":{"rendered":"<p>Hello,<\/p>\n<p>Your idea of hardcoded\/custom captcha error makes the plugin unusable on multilingual sites as there is no easy way to translate it.<\/p>\n<p>At the same time, if we delete the error completely, if the captcha fails, your plugin returns an empty &#8220;ERROR:&#8221;.<\/p>\n<p><strong>Suggestion:<\/strong> in your .po file there is a string &#8220;Please solve Captcha correctly&#8221;. 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 &#8220;Please solve Captcha correctly&#8221; and &#8220;ERROR:&#8221; 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.<\/p>\n<p>Let me know if I am not clear enough \ud83d\ude42<\/p>\n<p>Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-13445552","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13445552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13445552\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13445552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}