We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

is it possible to edit system generated text?

How Do I?

iheartJesus's avatar
iheartJesus
2 posts
6 years ago
iheartJesus's avatar iheartJesus

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

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
6 years ago
Robin Sowell's avatar Robin Sowell

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?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.