Babel plugin drops many translator comments #225
Migrated issue, originally created by Anonymous
The Babel plugin is supposed to retain translator comments if they are on a line preceding a translated string. But the logic in the Babel plugin clears the collected translator comments when intervening nodes are encountered.
(Reported by Ned Batchelder, firstname.lastname@example.org)
The text was updated successfully, but these errors were encountered:
Michael Bayer (@zzzeek) wrote:
hi Ned -
first off let me apologize that we're still on this poorly maintained Trac instance, ultimately I'd like to move the issues here to Bitbucket but haven't had the opportunity to work much on exporting the trac issues.
I've never worked with the Babel plugin (or Babel itself) and I'm not sure who wrote it, so I likely have to dig more into the tests and probably add new ones for these occasional issues that pop up. My totally random guess on this one looks like this, if you want to try it out:
this is just the most naive fix, to exclude text nodes from clearing out the comment list.
if you happen to know how this should be fixed, feel free to send a pullreq on either BB or github https://bitbucket.org/zzzeek/mako / https://github.com/zzzeek/mako. otherwise I'll have to find some time after the holiday to dig in. thanks for the bug report!