View Full Version : need urgent help changing words to spanish
roxcastaneda251760
07-28-2010, 01:02 PM
This is the contact form email as it arrives:
Contact Name: roxana castañeda
Email address: roxcastaneda@gmail.com
Telefono: 6549249
Celular: 9999999
Empresa: Diseño Web Perú
Cargo: Dueña
Direccion: Fray Luis de Leon 294
San Borja
Comments: prueba qm
I need to change:
Contact Name to Nombres y Apellidos
Email address to Email
Comments to Comentarios
I tried doing what you told me with the previous contact form but the last version doesn't work when I make the changes.
Please help!
Kind regards, Rox
roxcastaneda251760
07-28-2010, 01:03 PM
For example, this is the Contact Name:
<input name="Contact_Name" type="text" class="inputValue" id="Contact_Name" onblur="if (document.getElementById('nameServerError')) document.getElementById('nameServerError').style.d isplay='none'" value="<?php echo html_entity_decode(ValidatedField("contact","Contact_Name")) ?>" />
<span class="textfieldRequiredMsg">A value is required.</span></span>
<input name="addblock" type="text" id="addblock" style="display:none" value="" />
<?php
if (ValidatedField("contact","contact")) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {
?>
<span id="nameServerError" class="textfieldServerError">Por favor escriba su nombre y apellidos.</span>
<?php //WAFV_Conditional contact.php contact(1:)
}
}
}?>
roxcastaneda251760
07-28-2010, 01:57 PM
to download the files use the same ftp login details I sent you on my previous posting: "how to add multiple selection for a checklist"
roxcastaneda251760
07-28-2010, 02:00 PM
There is something else, on the "http://www.qmcomunicaciones.com/empleos.php", which you already helped solve the problem with checkboxes, I have added the following:
<br />
<label for="Cargo">Cargo al que desea postular:</label><br />
<select size="1">
<option value="Asesor Telefónica Lima">Asesor Telefónica Lima</option>
<option value="Ejecutivo Comercial">Ejecutivo Comercial</option>
<option value="Teleoperador Emisión y Recepción">Teleoperador Emisión y Recepción</option>
</select>
<br />
<br /><label for="Grado">Grado de Instrucción:</label> <br /> <select size="1">
<option value="Superior">Superior</option>
<option value="Técnico">Técnico</option>
<option value="Graduado Universitario">Graduado Universitario</option>
<option value="PosGraduado Universitario">PosGraduado Universitario</option> </select> <br />
They do not appear on the email that the contact form sends:
Contact Name: roxana castañeda
Email address: roxcastaneda@gmail.com
Telefono: 6549249
DNI: 08799721
Direccion: Fray Luis de León 294, San Borja
Lima 41
Perú
Idiomas: Inglés, Francés, Alemán, Portugués, Italiano, Español
Estudios: Universidad del Pacífico
Esan
Referencias: Mariana Woll
Telf. 4422478
Comments: Perseverante, trabajadora, aprendo rápido
Just in case, I created another "WA_Globals1.php" for this form.
What am I missing?
Thanks for your help.
Jason Byrnes
07-29-2010, 07:36 AM
to change the names of the form elements, you will also need to either delete or change the corresponding server validation.
For example, to change the contact name:
<input name="Contact_Name" type="text" class="inputValue" id="Contact_Name" onblur="if (document.getElementById('nameServerError')) document.getElementById('nameServerError').style.d isplay='none'" value="<?php echo(ValidatedField("contact","Contact_Name")) ?>" />
to:
<input name="Nombres_y_Apellidos" type="text" class="inputValue" id="Contact_Name" onblur="if (document.getElementById('nameServerError')) document.getElementById('nameServerError').style.d isplay='none'" value="<?php echo(ValidatedField("contact","Contact_Name")) ?>" />
you will also need to change:
$WAFV_Errors .= WAValidateRQ(((isset($_POST["Contact_Name"]))?$_POST["Contact_Name"]:"") . "",true,1);
to:
$WAFV_Errors .= WAValidateRQ(((isset($_POST["Nombres_y_Apellidos"]))?$_POST["Nombres_y_Apellidos"]:"") . "",true,1);
if you change the email address form element, you will also need to edit the WA_Universal_Email/WAUE_contact_1.php file.
If you are changing the name to "Email", you will need to change:
$MailFrom = "".((isset($_POST["Email_address"]))?$_POST["Email_address"]:"") ."";
to:
$MailFrom = "".((isset($_POST["Email"]))?$_POST["Email"]:"") ."";
the issue with the select lists is that they do not have a name attribute:
<select size="1">
should be:
<select name="mySelectList" size="1">
roxcastaneda251760
07-29-2010, 12:33 PM
Thank you, the lists work fine.
Please look at it because it doesn't work:
http://www.qmcomunicaciones.com/empleos.php
http://www.qmcomunicaciones.com/contactenos.php
How can I send you a rar file?
Jason Byrnes
07-29-2010, 12:38 PM
use a zip file instead of rar.
roxcastaneda251760
07-29-2010, 01:59 PM
Zip file enclosed
Jason Byrnes
07-29-2010, 02:15 PM
change lines 15 - 17:
$WAFV_Errors .= WAValidateEM(((isset($_POST["Email"]))?$_POST["Email_address"]:"") . "",true,2);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["Comentarios"]))?$_POST["Comments"]:"") . "",true,3);
$WAFV_Errors .= WAValidateLE(((isset($_POST["Codigo_de_Seguridad"]))?strtolower($_POST["Security_code"]):"") . "",((isset($_SESSION["captcha_1"]))?strtolower($_SESSION["captcha_1"]):"") . "",true,4);
to:
$WAFV_Errors .= WAValidateEM(((isset($_POST["Email"]))?$_POST["Email"]:"") . "",true,2);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["Comentarios"]))?$_POST["Comentarios"]:"") . "",true,3);
$WAFV_Errors .= WAValidateLE(((isset($_POST["Codigo_de_Seguridad"]))?strtolower($_POST["Codigo_de_Seguridad"]):"") . "",((isset($_SESSION["captcha_1"]))?strtolower($_SESSION["captcha_1"]):"") . "",true,4);
roxcastaneda251760
07-29-2010, 02:58 PM
thank you very much for your help
Jason Byrnes
07-30-2010, 06:51 AM
you're welcome.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.