From aa600814c8481432b6440c984eec544dd8af28d3 Mon Sep 17 00:00:00 2001 From: alaaosh Date: Mon, 21 Dec 2009 15:36:04 +0000 Subject: 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 --- 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 -- cgit v0.9.1