]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fixed a bug in pofile (in_msgctxt was not defined). Test follows.
authorArmin Ronacher <armin.ronacher@active-4.com>
Mon, 16 Jun 2008 09:53:44 +0000 (09:53 +0000)
committerArmin Ronacher <armin.ronacher@active-4.com>
Mon, 16 Jun 2008 09:53:44 +0000 (09:53 +0000)
babel/messages/pofile.py

index fc3af0c7d1881fceee45eb322fd5664c00fea8ec..806641265b7f6e9882e677a3396eff03543ae40f 100644 (file)
@@ -139,6 +139,7 @@ def read_po(fileobj, locale=None, domain=None, ignore_obsolete=False):
     context = []
     in_msgid = [False]
     in_msgstr = [False]
+    in_msgctxt = [False]
 
     def _add_message():
         translations.sort()