O utilizzi uno script GeoIP (es. basato sul database MaxMind, etc.) oppure analizzi il parametro $_SERVER['HTTP_ACCEPT_LANGUAGE'].