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

Issue 65: xliff2po & po2xliff should handle context

Unified Diff

File: translate/convert/xliff2po.py
Patch Set: 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 7848)
+++ translate/convert/xliff2po.py	(working copy)
@@ -42,6 +42,11 @@
             thepo.source = transunit.source
         thepo.target = transunit.target
 
+        #Context
+        context = transunit.getcontextgroups('po-1025')
+        if context:
+            thepo.setcontext(context[0][0][1])
+
         #Location comments
         locations = transunit.getlocations()
         if locations:

Powered by Google App Engine
This is Rietveld r159