Jump to content

donating translation code for all ok.


redarrow

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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.