Complex sentence: The sockets are attached to the ratchet through a square fitting that contains a calibrated detent mechanism to keep the sockets in place.
Split into simpler sentences: The sockets are attached to the ratchet through a square fitting. This fitting contains a calibrated detent mechanism to keep the sockets in place.