In this task, you are given a sentence or phrase in English. You must translate it to Xhosa in a way that is equivalent in terms of meaning and grammatically correct.
--------
Question: Preparation formerly put on ships' bottoms in an endeavour to prevent attachment of barnacles and other marine life.

Answer: Amalungiselo akuqala awayesenziwa kumazantsi enqanawa kwinzame zokukhusela ukuncamathela kweentsentsane nezinye izinto eziphila emanzini.

Question: The ship was driven ashore in bad weather on to a firm, sandy beach with isolated patches of submerged rock.

Answer: Inqanawa yaqhutyelwa elunxwemeni kwimozulu embi ukuya kunxweme oluthambileyo olunesanti elinezigqumi ezahlukeneyo zamatye atshonileyo.

Question: When the Main Mast or part thereof would be damaged or broken whilst at sea, the ship's company had to exert all effort to rectify the problems whilst at sea.

Answer:
Xa iMasti enguNdoqo okanye inxalenye yayo engonakaliswa okanye yophulwe ngeli lixa iselwandle, inkampani yenqanawa kunyanzelekile ukuba isebenzise onke amandla okulingisa iingxaki ngeli lixa iselwandle.