redarrow Posted September 16, 2006 Share Posted September 16, 2006 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 https://forums.phpfreaks.com/topic/20998-donating-translation-code-for-all-ok/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.