Translate PHP form with Joom!fish

How to support more than one language on your site.

Moderator: General Support Moderators

Locked
eevaa
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Nov 20, 2011 10:26 pm

Translate PHP form with Joom!fish

Post by eevaa » Sun Nov 20, 2011 10:49 pm

Hi,

I made a custom php contact form and placed it in joomla custom module. I'm not able to edit this module in joomfish options. Does anybody know is there any way to translate this form some other way?


This is the for code, it is only necessary to translate labels as title, first name etc. when joomfish german language is active on my site. there are two language options on site, englisg and german, and user can change it.

Thanks!

Code: Select all

<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">// <![CDATA[
	google.load("jquery", "1.4.2");
// ]]></script>
<table id="newsletter_table" border="0" cellspacing="0" cellpadding="20">
<tbody>
<tr>
<td align="center" valign="top"><!-- \\\ wrap table /// --> <!--- /// ***************************************************** SIGNUP FORM PAGE \\\ --> 
<table id="newsletter_table" class="container" border="0" cellspacing="0" cellpadding="0" width="600">
<tbody>
<tr>
<td class="content formText" align="left" valign="top">
<div id="content">
<div id="subscribeForm" class="contentBox"><form action="../../contact.php" method="post"> 
<table class="mergeTable" border="0" cellspacing="0" cellpadding="10">
<tbody id="mergeTable">
<tr id="mergeRow-4" class="mergeRow dojoDndItem mergeRow-dropdown">
<td class="formText" align="left"><label for="MERGE4">Title</label></td>
<td><select id="MERGE4" name="MERGE4"><option value="Mr.">Mr.</option><option value="Mrs.">Mrs.</option></select></td>
</tr>
<tr id="mergeRow-1" class="mergeRow dojoDndItem mergeRow-text">
<td class="formText" align="left"><label for="MERGE1">First Name<span class="asterisk">*</span></label></td>
<td><input id="MERGE1" name="MERGE1" size="25" type="text" /></td>
</tr>
<tr id="mergeRow-2" class="mergeRow dojoDndItem mergeRow-text">
<td class="formText" align="left"><label for="MERGE2">Last Name <span class="asterisk">*</span></label></td>
<td><input id="MERGE2" name="MERGE2" size="25" type="text" /></td>
</tr>
<tr id="mergeRow-5" class="mergeRow dojoDndItem mergeRow-text">
<td class="formText" align="left"><label for="MERGE5">Street/No.</label></td>
<td><input id="MERGE5" name="MERGE5" size="25" type="text" /></td>
</tr>
<tr id="mergeRow-3" class="mergeRow dojoDndItem mergeRow-text">
<td class="formText" align="left"><label for="MERGE3">ZIP-Code/City</label></td>
<td><input id="MERGE3" name="MERGE3" size="25" type="text" /></td>
</tr>
<tr id="mergeRow-0" class="mergeRow dojoDndItem mergeRow-email">
<td class="formText" align="left"><label for="MERGE0">E-mail<span class="asterisk">*</span></label></td>
<td><input id="MERGE0" name="MERGE0" size="25" type="email" /></td>
</tr>
<tr id="mergeRow-6" class="mergeRow dojoDndItem mergeRow-email">
<td class="formText" align="left"><label for="MERGE6">Message<span class="asterisk">*</span></label></td>
<td><textarea id="MERGE6" cols="50" rows="4" name="MERGE6"></textarea></td>
</tr>
</tbody>
<tbody>
<tr id="merge-email_type-101" class="mergeRow mergeRow-interests-checkboxes" valign="top">
<td></td>
<td>
<p style="width: 150px; margin-top: -20px; margin-left: 20px;"><span class="asterisk">*</span>required fields</p>
</td>
</tr>
<tr>
<td class="mc_submit_button"><input class="button" name="submit" type="submit" value="Submit" /></td>
<td></td>
</tr>
</tbody>
</table>
</form></div>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

User avatar
SpyderKate
Joomla! Intern
Joomla! Intern
Posts: 82
Joined: Fri Jun 05, 2009 6:29 pm
Location: Toronto, Canada

Re: Translate PHP form with Joom!fish

Post by SpyderKate » Mon Nov 28, 2011 3:44 am

Can you create another module with the custom code in it (translated) and just point your menu item to the translated version in JoomFish?


Locked

Return to “Joom!Fish and Multilingual Sites”