translate English to French: In 1842 it was consecrated as a church.
Sous la restauration le bâtiment fût rendu au culte catholique.