i18n/posplit
changeset 39269 d0e8933d6dad
parent 29153 90d84e1e427a
child 41759 aaad36b88298
--- a/i18n/posplit	Wed Aug 22 14:22:59 2018 +0900
+++ b/i18n/posplit	Wed Aug 22 14:37:56 2018 +0900
@@ -15,6 +15,14 @@
     e = cache.get(entry.msgid)
     if e:
         e.occurrences.extend(entry.occurrences)
+
+        # merge comments from entry
+        for comment in entry.comment.split('\n'):
+            if comment and comment not in e.comment:
+                if not e.comment:
+                    e.comment = comment
+                else:
+                    e.comment += '\n' + comment
     else:
         po.append(entry)
         cache[entry.msgid] = entry