Jump to content


Photo

donating translation code for all ok.


  • Please log in to reply
No replies to this topic

#1 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 16 September 2006 - 07:13 PM

I donate this code so all users can translate there websites into diffrent lanuages.

all you got to do is copy and past this into the header.php file or index.php page.

good luck.


<?php
$thisurl = $_SERVER["PHP_SELF"];
if ( $_SERVER['QUERY_STRING'] <> '') {
   $thisurl .= "?" . $_SERVER['QUERY_STRING'];
   }
$thisurl = 'http://' . $_SERVER["SERVER_NAME"] . $thisurl;
$thisurl = str_replace(":", "%3A", $thisurl);
$thisurl = str_replace("/", "%2F", $thisurl);
$thisurl = str_replace("&", "%26", $thisurl);
?>
<a title="English to German" href="http://translate.google.com/translate?u=<?echo 

$thisurl;?>&langpair=en%7Cde&hl=en&ie=UTF-8&oe=UTF-8">English to German</a> |
<a title="English to Spanish" href="http://translate.google.com/translate?u=<?echo 

$thisurl;?>&langpair=en%7Ces&hl=en&ie=UTF-8&oe=UTF-8">English to Spanish</a> |
<a title="English to French" href="http://translate.google.com/translate?u=<?echo 

$thisurl;?>&langpair=en%7Cfr&hl=en&ie=UTF-8&oe=UTF-8">English to French</a> |
<a title="English to Italian" href="http://translate.google.com/translate?u=<?echo 

$thisurl;?>&langpair=en%7Cit&hl=en&ie=UTF-8&oe=UTF-8">English to Italian</a> |
<a title="English to Portuguese" href="http://translate.google.com/translate?u=<?echo 

$thisurl;?>&langpair=en%7Cpt&hl=en&ie=UTF-8&oe=UTF-8">English to Portuguese</a> |
<a title="German to English" href="http://translate.google.com/translate?u=<?echo 

$thisurl;?>&langpair=de%7Cen&hl=en&ie=UTF-8&oe=UTF-8">German to English</a> |
<a title="German to French" href="http://translate.google.com/translate?u=<?echo 

$thisurl;?>&langpair=de%7Cfr&hl=en&ie=UTF-8&oe=UTF-8">German to French</a> |
<a title="Spanish to English" href="http://translate.google.com/translate?u=<?echo 

$thisurl;?>&langpair=es%7Cen&hl=en&ie=UTF-8&oe=UTF-8">Spanish to English</a> |
<a title="French to English" href="http://translate.google.com/translate?u=<?echo 

$thisurl;?>&langpair=fr%7Cen&hl=en&ie=UTF-8&oe=UTF-8">French to English</a> |
<a title="French to German" href="http://translate.google.com/translate?u=<?echo 

$thisurl;?>&langpair=fr%7Cde&hl=en&ie=UTF-8&oe=UTF-8">French to German</a> |
<a title="Italian to English" href="http://translate.google.com/translate?u=<?echo 

$thisurl;?>&langpair=it%7Cen&hl=en&ie=UTF-8&oe=UTF-8">Italian to English</a> |
<a title="Portuguese to English" href="http://translate.google.com/translate?u=<?echo 

$thisurl;?>&langpair=pt%7Cen&hl=en&ie=UTF-8&oe=UTF-8">Portuguese to English</a>
 

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users