GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   multi language script on a site (https://gfy.com/showthread.php?t=881083)

nico-t 01-12-2009 03:53 PM

multi language script on a site
 
gonna make a dutch site but want a button that peeps can switch to english, and also geo targeted so that visitors from outside belgium and holland see the english version automatically when they visit. I am gonna make it in dutch & for now automatic script based translation to english will do

nico-t 01-13-2009 05:25 AM

bizzumpp

CaptainHowdy 01-13-2009 05:44 AM

If you ever need a hand with English --> Spanish drop me a line: rosarioescorts (at) gmail (dot) com ... Goodluck!

tranza 01-13-2009 05:48 AM

You'll make some money in it, it's a nice idea! :thumbsup

borked 01-13-2009 11:48 AM

what do you mean you want a button to switch to english?

<a href="/en/" title="Switch to English">Switch to English</a>

will suffice? or even a little British flag etc


For the geo stuff, download Maxmind's database and install as an apache module, then (in php)
if ($_SERVER['GEOIP_COUNTRY_CODE'] != 'BE') {
header("Location: /en/");
exit();
}

or if installing as apache modules boggles the brain to much, use geoplugin...

$geolocation_data = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip=xx.xx.xx.xx'));
if ($geolocation_data['geoplugin_countryCode'] != 'BE') {
header("Location: /en/");
exit();
}

nico-t 01-13-2009 11:53 AM

thanks borked, gonna check it out :thumbsup

borked 01-13-2009 11:55 AM

However, word of advice, for language-localised sites, ALWAYS go off what the browser local is set to, not the person's country.

eg, my browser locale is set to english, yet I reside in France. It *really* pisses me of when I visit a language-localised site and the site is displayed in french.

My browser says I prefer to read web pages in English, not fucking French ;)


All times are GMT -7. The time now is 06:33 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123