Posted by osviweb on September 4, 2008 at 11:15pm
Jump to:
| Project: | Legal |
| Version: | 5.x-1.9 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
I may need to change the text "Terms and Conditions of Use" with the text "Termini e Condizioni d'uso. Privacy"
and the text
"Accept" with the text "Accetta"
i've tried to find and replace this in many files but still don't show up on the site. Where should I change it?
thanks
Comments
#1
I'd like to make a feature request to make the labels configurable fields.
Currently upon registration, the fieldset legend reads "Terms and Conditions of Use" and the label for the agreement field immediately below reads "Terms & Conditions:". I have a client who would like to remove the field label altogether. If these were configurable fields, that provide a lot of flexibility for renaming and/or removing this text.
#2
Hello,
I think you can use the String Overrides Module to change this text.
This module offers you the possibility to change easily every string in your website.
I hope it will help you.
#3
#427384: Translate "Terms & Conditions"
#4
I'd like to note that my patch provides a better (dare I say?) solution:
http://drupal.org/node/439198
It is for Drupal 6. The technique probably works for D5 though...
#5
Actually, what is missing is the proper user of t() for all strings.
The lines in question, which I just corrected on my installation, are:
98:
<?php$accept_label = t('<strong>Accept</strong> !terms of Use', array('!terms' => l(t('Terms & Conditions'), 'legal')));
?>
260:
<?php$form['legal']['legal_accept']['#title'] = t('<strong>Accept</strong> !terms of Use', array('!terms' => l(t('Terms & Conditions'), 'legal')));
?>
What I did is wrap t() around the text 'Terms & Conditions' inside the array('!terms'... )
#6
This is offtopic, but must be said.
osviweb: your logo is a huge rip from, http://www.arke.nl !
#7
Duplicate:
http://drupal.org/node/439198
#8
In case this helps anyone else....
If you want to change the text 'Accept Terms & Conditions of Use' to something else you can do so in a custom module using hook_form_alter().
function YOUR-MODULE_form_alter(&$form, $form_state, $form_id) {switch ($form_id) {
case 'user_register':
$form['legal']['legal_accept']['#title'] = 'I <strong>Accept</strong> Terms & Conditions of Use';
break;
}
}
In the code above I just needed to put an "I" before the word "Accept". This will keep from breaking any future updates.
Tim