translate English to French: The purpose of the law was to protect the child.
Il s'agit de protéger l'enfant.