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

Issue 65: xliff2po & po2xliff should handle context

Unified Diff

File: translate/storage/cpo.py
Patch Set: Created 1 year, 4 months ago
Jump to:
View side by-side-diff with in line comments
Index: translate/storage/cpo.py
===================================================================
--- translate/storage/cpo.py	(revision 7848)
+++ translate/storage/cpo.py	(working copy)
@@ -513,6 +513,11 @@
         else:
             return msgidcomment
 
+    def setcontext(self, context):
+        """Sets the current context for this unit"""
+        # TODO: inspect what behavior this should really have
+        gpo.po_message_set_msgctxt(self._gpo_message, context)
+
 class pofile(pocommon.pofile):
     UnitClass = pounit
     def __init__(self, inputfile=None, encoding=None, unitclass=pounit):

Powered by Google App Engine
This is Rietveld r159