My client doesn't like the word CAPTCHA when displaying the CAPTCHA authentication and wants that changed to "Security". I found the place to do that in the module in the title key in this array:
// Add a CAPTCHA part to the form (depends on value of captcha_description)
$captcha_description = _captcha_get_description();
if ($captcha_description) {
// $captcha_description is not empty: CAPTCHA part is a fieldset with description
$form['captcha'] = array(
'#type' => 'fieldset',
'#title' => t('Security'),
'#description' => $captcha_description,
'#attributes' => array('class' => 'captcha'),
);
And I changed it as appropriate. My question is, is there a better way to do this at the theme level so I'm not hacking the core module? Let me know or even providing a link to some instructions would be helpful.
Comments
Comment #1
matt bI've changed a number of 'drupalisms' by enabling the locale module and creating my own translation of the strings that I didn't want to use.
Comment #2
gomez_in_the_south commentedAnother solution for this is outlined in this post http://drupal.org/node/307150#comment-1102592
Comment #3
vacilando commentedExactly same problem -- my client wants to remove or customize the term "captcha"... is there any user friendly way of doing that?
Comment #4
colemanw commentedThis is easily done with String Overrides. Just type in the new text and you're done.
Comment #5
pdcrane commentedIs there a clean way to do this in Drupal 7? Maybe with hook_form_alter?
Specifically I'm trying to change the fieldset legend on the Sitewide Contact Form.
I can change the text of the response text field using something similar to here: Junaidi's Blog - Drupal 7 Code Snippet: Alter CAPTCHA Response Text Field, but for the life of me, I can't figure out how to edit the Fieldset Legend programatically.
Any ideas?
Updated Title and Version Tag
Comment #6
flaviovs commentedA dirty, ugly, and very inefficient hack. But at the end of the day, the job will be done.
Comment #7
hass commentedComment #9
flaviovs commentedThis is a slightly improved version of the ugly hack above: