Create PDF Email Print

Documentation for Joomla Extensions

How do I change the labels on the form?

Answer

To change language on the form you need to edit the file that stores all of the language text.  All English language text is stored in the file /components/com_donate/i8n/en-GB.php

For example, you will see entries in that file similar to the following

@DEFINE(_CD_FORM_FNAME,'First Name');
@DEFINE(_CD_FORM_LNAME,'Last Name');
@DEFINE(_CD_FORM_COMMENTS,'Comments');
@DEFINE(_CD_FORM_CARDNUMBER,'Card Number');
@DEFINE(_CD_FORM_EXPIRATIONDATE,'Expiration Date');
@DEFINE(_CD_FORM_CVV,'Card Verification Number');
@DEFINE(_CD_CVV,'Click here for details');

To change the 'Comments' field label to read 'Enter your comments', you would update the line in the file that reads

@DEFINE(_CD_FORM_COMMENTS,'Comments');

to

@DEFINE(_CD_FORM_COMMENTS,'Enter your comments');

and save the file.

If you need to enter a single quote (') in the string, be sure to escape it with a backslash as follows:
@DEFINE(_CD_FORM_COMMENTS,'It\'s easy!');

Category