For example I have a recaptcha plugin, all working correctly etc, but when using Channel Form (or any form) the error text doesn’t make sense (e.g. ‘You must submit the word that appears in the image’ , but no text is required for the recaptcha).
I’ve found the core file this is in and I’m able to edit it there, which works…, but editing core files is never a good solution (updates overwritting it etc..).
so; is there a good way to change the error text displayed? I’ve had a look at the docs for config edits but it isn’t one of the available overrides, I’ve also tried editing the config with:
$config['lang'] = array(
'captcha_required' => 'custom text..'
);
and
$config['captcha_required'] = 'custom text...';
but no luck there, also full disclosure; I’m not a php dev,
I appreciate any help, thanks
Hrm- I’d think recaptcha would have a way around that, so it might be worth checking there. That just doesn’t sound like it’s quite setup right.
For the more general question, you can create a new language pack that just has the files in it you want to override. So in this case, there would only be the one file that you want to override- and you’re good.
But I don’t think that’s the solution to this issue. Double check- is the native captcha even supposed to be enabled if recaptcha is being used?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.