Para poder traducir un formulario creado con el componente de ChronoForms necesitamos realizar lo siguiente:

Si este fuese el código:

<div class="form_item">
<div class="form_element cf_heading">
<h4 id="" class="cf_text">Personal details:</h4></div>
<div class="clear">&nbsp;</div></div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label">Name:</label><input class="cf_inputbox required" maxlength="150"
size="30" id="text_2" name="text_2" type="text"></div>
<div class="clear">&nbsp;</div></div>

tenemos que sustituir donde pone

“Name” por <?php echo JText::_( 'NAME' ) ?>

Fijate como he modificado el FORM CODE en el panel de control del formulario. He modificado los primeros ocho campos del formulario.

Luego tenemos que ir al archivo: html_public/language/english.php y en al final del archivo crear lo siguiente

/** components/com_chronoforms */

DEFINE('Nombre de la empresa','Name of the company');
DEFINE('Persona de contacto','Contact');
DEFINE('Dirección*','Adress*');
DEFINE('Código Postal','ZIP');
DEFINE('Municipio*','City Council*');
DEFINE('País*','Country*');
DEFINE('Teléfono*','Phone*');
DEFINE('Correo electrónico*','Email adress*');

Tienes que crear líneas con equivalencias entre palabras! Es muy importante que las lineas del archivo english.php coincidan exactamente con el texto a traducir.

Buena suerte!


JoomlaEmpresa.es is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries. Copyright © 2017 Joomla Empresa. Joomla! es software libre, liberado bajo la GNU General Public License.

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.