Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralaaosh <alaaosh@54714841-351b-0410-a198-e36a94b762f5>2009-12-21 15:36:04 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2010-01-09 09:11:35 (GMT)
commitaa600814c8481432b6440c984eec544dd8af28d3 (patch)
treeae7fae41d5d63d5c16276636d7e72551b1d1e6b4
parent72c1991510699e6541446d9f8e139fe54b392c89 (diff)
autocomments was being accessed without initialization when adding translator comments
git-svn-id: https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/translate@13535 54714841-351b-0410-a198-e36a94b762f5
-rw-r--r--translate-toolkit-1.5.1/translate/storage/pypo.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/translate-toolkit-1.5.1/translate/storage/pypo.py b/translate-toolkit-1.5.1/translate/storage/pypo.py
index 885b1a2..8a6c4dc 100644
--- a/translate-toolkit-1.5.1/translate/storage/pypo.py
+++ b/translate-toolkit-1.5.1/translate/storage/pypo.py
@@ -300,6 +300,7 @@ class pounit(pocommon.pounit):
text = data.forceunicode(text)
commentlist = self.othercomments
linestart = "# "
+ autocomments = False
if origin in ["programmer", "developer", "source code"]:
autocomments = True
commentlist = self.automaticcomments