madhya (Old Javanese) comes from Sanskrit मध्य, from Proto-Indo-European *mádʰyas, from Proto-Indo-Iranian mádʰyas, from Proto-Indo-European médʰyos, from Proto-Indo-European medʰi-, from Proto-Indo-European me — in the middle of, near, by, around, with.