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

Issue 101: Add setcontext method in PO storage classes

Unified Diff

File: translate/storage/cpo.py
Patch Set: Created 1 year, 3 months ago
Jump to:
View side by-side-diff with in line comments
Index: translate/storage/cpo.py
===================================================================
--- translate/storage/cpo.py	(revision 8228)
+++ translate/storage/cpo.py	(working copy)
@@ -505,6 +505,10 @@
                 line = -1
             gpo.po_message_add_filepos(self._gpo_message, file, line)
 
+    def setcontext(self, context):
+        """Sets the context message"""
+        gpo.po_message_set_msgctxt(self._gpo_message, context)
+
     def getcontext(self):
         msgctxt = gpo.po_message_msgctxt(self._gpo_message)
         msgidcomment = self._extract_msgidcomments()

Powered by Google App Engine
This is Rietveld r159