Ok, so this is actually a gtparse error. The problem as I could see it is that the method extract_string does this:
if not line.startswith(header + ' "'):
but for some reason the header for the msgctxt already contains its ' "', so it can be fixed by this diff:
Ok, so this is actually a gtparse error. The problem as I could see it is that the method extract_string does this: (header + ' "'):
if not line.startswith
but for some reason the header for the msgctxt already contains its ' "', so it can be fixed by this diff:
=== modified file 'pyg3t/gtparse.py' [headerline] + otherlines)
--- pyg3t/gtparse.py 2011-06-19 17:20:03 +0000
+++ pyg3t/gtparse.py 2011-09-14 12:37:27 +0000
@@ -430,7 +430,7 @@
return ''.join(
linepatterns = dict(comment='#',
msgid=' msgid',
msgid_plural= 'msgid_ plural' ,
msgstr= 'msgstr' ,
- msgctxt='msgctxt "',
+ msgctxt='msgctxt', # Used to be 'msgctxt "'
However, I cannot really see if there is a particular reason that it was like that.