View Single Post
Old 08-16-2009, 10:23 AM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
What i would do is log your visitors languages and get an idea of the top languages , then work on getting some "real" translations for the major ones

make a file called languagelog.txt upload to root , chmod then drop this pgp into your index, this will log the different languages.
Code:
<?php
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
$fh2 = fopen("languagelog.txt", 'a+');
fwrite($fh2, "$lang\n");
fclose($fh2);
?>
it all depends on the type of site you have in how you would implement translation integration.

Could be as simple as a welcome message
if ($lang == "en"){ $welcomemessage = "Welcome to my site";}
if ($lang == "fr"){ $welcomemessage = "Bonjour tete a la merde";}
__________________
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