It depends on the country.
If this was Iran transgenderism is okay, it is seen as a “cure” for homosexuality, but the person would have to have the complete sex change operation.
I don’t know what the laws are in Indonesia.
He’s looking at four years in prison because he married the man to steal his family’s assets.