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/storage/cpo.py
Patch Set:
Jump to:
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):