complete translation and write to file