
Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com
Mobile version of this pageNginx vs. Squid
Next:
Head-to-head movie voting
Related blogs
Simple interface for CrosstipsCrossing the world - new feature on Crosstips
Most unusual letters in English language
"I was robbed by twooo men" Zuiikin English girls
British English for Americans
Make makes my website slow? DNS
Custom CacheMiddleware that tells Javascript a page is cached in Django
My first YSlow Grade A (100)!
Getting uploadify to work
How to uninstall nginx with apt
"Historisk Guide till England"
Most common English words
Regular Expressions in Javascript cheat sheet
Related by category
British or American English or just English
http://crosstips.org/language choices, english gb, nginx, brit, england, british, english, crosstips, geo, geo ip, crosstips.org
17th of March 2009
My play site Crosstips.org is available in British English and American English. Obviously the difference is small but it's important.
What I've done is that if you're located in, say, France and visit the site it offers you the following language choices:
- Svenska [goes to krysstips.se]
- English (GB) [goes to en-gb.crosstips.org]
- English (US) [goes to en-us.crosstips.org]
But if you're located in, say, England it only offers you the following language choices:
- Svenska [goes to krysstips.se]
- English [goes to en-gb.crosstips.org]
And likewise, if you visit the site from US computer you just get two options and it uses the en-us.crosstips.org domain. As an American or a Brit why would you be interested in the other English? I think this is a really good usability trick. It reduces the noise by removing options.
How did I do that? The answer is the GEO IP. I used the geo module in nginx and a config file I found here and then I wrote a script that uses this GEO variable (fron Nginx) to change the options accordingly.
Comment
There are a lot of Brits living here in the US that would prefer to see British English!
Damn! I was so close to have a coherent point and then you go and damage it with logic and common sense!


Save this page in del.icio.us
Well, that covers two forms of English; what about all the rest? =) (en-au, en-nz, en-ca, en-za, just to name a few...) (And no, we don't speak 'British English' in Australia; our language is just more similar to British English than American English.)