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

Issue 65: xliff2po & po2xliff should handle context

Unified Diff

File: translate/convert/po2xliff.py
Patch Set: Created 1 year, 4 months ago
Jump to:
View side by-side-diff with in line comments
« no previous file | translate/convert/test_po2xliff.py » ('j')
Index: translate/convert/po2xliff.py
===================================================================
--- translate/convert/po2xliff.py	(revision 7848)
+++ translate/convert/po2xliff.py	(working copy)
@@ -45,6 +45,12 @@
                 unit.markfuzzy(inputunit.isfuzzy())
             else:
                 unit.markapproved(False)
+
+            #Handle msgctxt
+            context = inputunit.getcontext()
+            if context:
+                unit.createcontextgroup("po-1025", [("x-unknown", context)],
+                                        purpose="match information")
             
             #Handle #: location comments
             for location in inputunit.getlocations():

« no previous file | translate/convert/test_po2xliff.py » ('j')

Powered by Google App Engine
This is Rietveld r159