A court in Ecuador sentenced the crew of a Chinese ship caught fishing endangered sharks in the Galapagos marine reserve to prison terms.