translate the document.