i18n/posplit
changeset 20362 1bce1078501d
parent 20361 3fe079d3a2b4
child 20363 e3ee7ec85a15
equal deleted inserted replaced
20361:3fe079d3a2b4 20362:1bce1078501d
    53         for msgid, msgstr in zip(msgids, msgstrs):
    53         for msgid, msgstr in zip(msgids, msgstrs):
    54             if msgid and msgid != '::':
    54             if msgid and msgid != '::':
    55                 newentry = mkentry(entry, delta, msgid, msgstr)
    55                 newentry = mkentry(entry, delta, msgid, msgstr)
    56                 mdirective = findd.match(msgid)
    56                 mdirective = findd.match(msgid)
    57                 if mdirective:
    57                 if mdirective:
       
    58                     if not msgid[mdirective.end():].rstrip():
       
    59                         # only directive, nothing to translate here
       
    60                         continue
    58                     directive = mdirective.group(1)
    61                     directive = mdirective.group(1)
    59                     comment = 'do not translate: .. %s::' % directive
    62                     comment = 'do not translate: .. %s::' % directive
    60                     if not newentry.comment:
    63                     if not newentry.comment:
    61                         newentry.comment = comment
    64                         newentry.comment = comment
    62                     elif comment not in newentry.comment:
    65                     elif comment not in newentry.comment: