##// END OF EJS Templates
i18n: merge i18n comments of translatable texts correctly...
FUJIWARA Katsunori -
r39305:d0e8933d default
parent child Browse files
Show More
@@ -15,6 +15,14 b' def addentry(po, entry, cache):'
15 e = cache.get(entry.msgid)
15 e = cache.get(entry.msgid)
16 if e:
16 if e:
17 e.occurrences.extend(entry.occurrences)
17 e.occurrences.extend(entry.occurrences)
18
19 # merge comments from entry
20 for comment in entry.comment.split('\n'):
21 if comment and comment not in e.comment:
22 if not e.comment:
23 e.comment = comment
24 else:
25 e.comment += '\n' + comment
18 else:
26 else:
19 po.append(entry)
27 po.append(entry)
20 cache[entry.msgid] = entry
28 cache[entry.msgid] = entry
General Comments 0
You need to be logged in to leave comments. Login now