View Single Post
Old 08-16-2009, 10:48 AM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
something like this
Code:
<?php
$mypage = "www.gfy.com/index.php";
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
$url = "http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=bf-home&trurl=http%3A%2F%2F$mypage&lp=en_$lang&btnTrUrl=Translate";
if ($lang == "fr"){
$message = "Translate this page <- this should be in french";
}
if ($lang == "de"){
$message = "Translate this page <- this should be in german";
}
$translatelink = "<a href=\"$url\">$message</a>";
echo $translatelink;

?>
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote