diff babel/messages/extract.py @ 85:04a2f16bdd04 trunk

Fixed de-pluralization bug introduced in [85] regarding the extraction of translator comments. Added a unittest which tests the extraction of translator comments that have non-translator comments right before the comment tag.
author palgarvio
date Sun, 10 Jun 2007 21:14:38 +0000
parents 3ae316b58231
children 5cff450b9ed5
line wrap: on
line diff
--- a/babel/messages/extract.py
+++ b/babel/messages/extract.py
@@ -296,8 +296,8 @@
             if in_translator_comments is True:
                 translator_comments.append(value[1:].strip())
                 continue
-            for comment_tags in comment_tags:
-                if comment_tags in value:
+            for comment_tag in comment_tags:
+                if comment_tag in value:
                     if in_translator_comments is not True:
                         in_translator_comments = True
                     translator_comments.append(value[1:].strip())
Copyright (C) 2012-2017 Edgewall Software