Recent Issues
|
Sign in
with your
Google
Account to create issues and add comments
Issue 65:
xliff2po & po2xliff should handle context
Unified Diff
File: translate/convert/xliff2po.py
Patch Set: A more complete patch, supporting CPO and pypo
Jump to:
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: