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

Issue 101: Add setcontext method in PO storage classes

Unified Diff

File: translate/storage/pypo.py
Patch Set: Created 1 year, 3 months ago
Jump to:
View side by-side-diff with in line comments
Index: translate/storage/pypo.py
===================================================================
--- translate/storage/pypo.py	(revision 8228)
+++ translate/storage/pypo.py	(working copy)
@@ -740,6 +740,10 @@
         """Get the message context."""
         return unquotefrompo(self.msgctxt) + self._extract_msgidcomments()
 
+    def setcontext(self, context):
+        """Sets the message context"""
+        self.msgctxt = quoteforpo(context)
+
     def getid(self):
         """Returns a unique identifier for this unit."""
         context = self.getcontext()

Powered by Google App Engine
This is Rietveld r159