This is not as simple as it may sound. You need a script to translate ip address to country code, then you set the language to that.

Google for "ip address to country" will show you a list of script that does so.