i18n: leave out entries which contain only a rst directive
This prevents the danger of translating entries like ".. note::"
--- a/i18n/posplit Sun Nov 17 20:24:33 2013 +0100
+++ b/i18n/posplit Mon Feb 03 21:33:48 2014 +0100
@@ -55,6 +55,9 @@
newentry = mkentry(entry, delta, msgid, msgstr)
mdirective = findd.match(msgid)
if mdirective:
+ if not msgid[mdirective.end():].rstrip():
+ # only directive, nothing to translate here
+ continue
directive = mdirective.group(1)
comment = 'do not translate: .. %s::' % directive
if not newentry.comment: