How to say they warned the ship of the danger. in fra

1)ils avertirent le navire du danger.    
Translation by sacredcelticConnect Error: Too many connections