Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16)

Issue 65: xliff2po & po2xliff should handle context

Unified Diff

File: translate/convert/xliff2po.py
Patch Set: A more complete patch, supporting CPO and pypo Created 1 year, 4 months ago
Jump to:
View side by-side-diff with in line comments
Index: translate/convert/xliff2po.py
===================================================================
--- translate/convert/xliff2po.py	(revision 7897)
+++ translate/convert/xliff2po.py	(working copy)
@@ -42,6 +42,11 @@
             thepo.source = transunit.source
         thepo.target = transunit.target
 
+        #Context
+        context = transunit.getcontext_message()
+        if context:
+            thepo.setcontext(context)
+
         #Location comments
         locations = transunit.getlocations()
         if locations:

Powered by Google App Engine
This is Rietveld r159