Show More
@@ -15,6 +15,14 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