translateDocument should iterate over entities, not nodes
Merge pull request #2 from stasm/translateDocument

translateDocument should iterate over entities, not nodes