summaryrefslogtreecommitdiff
path: root/babel
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2008-06-16 09:53:44 +0000
committerArmin Ronacher <armin.ronacher@active-4.com>2008-06-16 09:53:44 +0000
commitfb22a5ba4648301b6db8751ee8b7c7fe61b2c392 (patch)
tree3e43218923751aad018f6fe2b45d281bf539df63 /babel
parentac564c76ee8b3fcad7d62314ff42e208473f0cb8 (diff)
downloadbabel-fb22a5ba4648301b6db8751ee8b7c7fe61b2c392.tar.gz
Fixed a bug in pofile (in_msgctxt was not defined). Test follows.
Diffstat (limited to 'babel')
-rw-r--r--babel/messages/pofile.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/babel/messages/pofile.py b/babel/messages/pofile.py
index fc3af0c..8066412 100644
--- a/babel/messages/pofile.py
+++ b/babel/messages/pofile.py
@@ -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()