translate whole document