Its possible that translation occurs on the gateway, some vendors have done this. It does require translation though. In MGCP, the translation would occur on the call agent not the gateway since the gateway is dumb.
Folks like media ring are doing h323 to sip conversion on an IP – IP gateway.
There is no clear cut answer on how and where to translate the messages. It will depend on the vendor implementation.