Yes, they are trying to locate you by your IP (which, by the way, is a very imperfect process). Specifically regarding Trip Advisor, there must be, on the extreme right top of the screen, a small flag where you could select your language/region.
Even worse are the sites (usually american) that blocks you from logging/navigating when you're acessing them from abroad.