Jump to content

Archived

This topic is now archived and is closed to further replies.

redarrow

donating translation code for all ok.

Recommended Posts

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.


[code]
<?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>

[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.