Google Translation - Beta

Post non-phpwcms related topics here - but I don't want to see "hey check this or that other cms". Post if you have a point or worthwhile comment, don't post just to increase you post count!
Post Reply
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Google Translation - Beta

Post by Stim »

What du you think? Note: it not tested on phpwcms site but should work.

Demo : http://www.servertweak.com/
Post if you have any errors or changes

File Uploads:
Upload images in folder "images" in main root (www)
images: (sample : your-domain.com/images)

I cant attached any images file but just create your own and edit line 13

Code: Select all

<input name="u" value="http://www.yoursite.com/" type="hidden" /></noscript>
Replace with your own domain
///Save file

Header or Wrap:
Copy and paste where you like it to show up

if you gett this to work better, please share it
** Please post your URL if you get it to work, to show and tell

Code: Select all

<div style="width:100%;margin:0px;padding:0px;" align="left">
<form action="http://www.google.com/translate_p" style="margin:0;padding:0;">
<script type="text/javascript">
<!-- 
var myLocation = location.href;
var loc = myLocation.split("http://");
var locID = loc.length;
var myurl = "http://"+loc[locID-1];
document.write ("<input name='u' value='"+myurl+"' type='hidden' />");
//-->
</script>
<noscript>
<input name="u" value="http://www.yoursite.com/" type="hidden" /></noscript>
<input name="hl" value="en" type="hidden" />
<input name="ie" value="UTF8" type="hidden" />
<input name="langpair" value="" type="hidden" />
<input style="width:20px;height:14px;" name="langpair" value="en|fr" title="Français/French" src="images/french.gif" align="bottom" onclick="this.form.langpair.value=this.value"  type="image"  />
<input style="width:20px;height:14px;" name="langpair" value="en|de" title="Deutsch/German" src="images/german.gif" align="bottom" onclick="this.form.langpair.value=this.value"  type="image"  />
<input style="width:20px;height:14px;" name="langpair" value="en|it" title="Italiano/Italian" src="images/italian.gif" align="bottom" onclick="this.form.langpair.value=this.value"  type="image"  />
<input style="width:20px;height:14px;" name="langpair" value="en|pt" title="Português/Portuguese" src="images/portuguese.gif" align="bottom" onclick="this.form.langpair.value=this.value"  type="image"  />
<input style="width:20px;height:14px;" name="langpair" value="en|es" title="Español/Spanish" src="images/spanish.gif" align="bottom" onclick="this.form.langpair.value=this.value"  type="image"  />
<input style="width:20px;height:14px;" name="langpair" value="en|ja" title="日本語/Japanese" src="images/japanese.gif" align="bottom" onclick="this.form.langpair.value=this.value"  type="image"  />
<input style="width:20px;height:14px;" name="langpair" value="en|ko" title="한국어/Korean" src="images/korean.gif" align="bottom" onclick="this.form.langpair.value=this.value"  type="image"  />
<input style="width:20px;height:14px;" name="langpair" value="en|zh-CN" title="中文(简体)/Chinese Simplified" src="images/chinese.gif" align="bottom" onclick="this.form.langpair.value=this.value"  type="image"  />
<input style="width:20px;height:14px;" name="langpair" value="en|en" title="English" src="images/english.gif" align="bottom" onclick="this.form.langpair.value=this.value"  type="image"  />
</form></div>
)-= 1.3.0 user =-(
Post Reply