Use list_logical_lines to scan for translations.

This will properly handle comments, and so fixes #363.