Generally, it's a better idea to use the accept-language header in the request, as mrhappiness suggests - people generally have a better idea of what language they want to read pages than their ISP.
But for matching IPs to countries, a search of the forums for ip country, say, should turn up dozens of pages.