Recent Issues
|
Sign in
with your
Google
Account to create issues and add comments
Issue 101:
Add setcontext method in PO storage classes
Unified Diff
File: translate/storage/cpo.py
Patch Set:
Jump to:
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()