summaryrefslogtreecommitdiff
path: root/babel
diff options
context:
space:
mode:
authorPedro Algarvio <pedro@algarvio.me>2008-06-26 21:16:42 +0000
committerPedro Algarvio <pedro@algarvio.me>2008-06-26 21:16:42 +0000
commitf51cd7d325a19dbff0c27ee7b6eceb0a35015c43 (patch)
treea5cb760a5b93736185fe0eb5b2ad25cfd9281231 /babel
parentaf76ec42708d55450db18a6474805d2ecc931482 (diff)
downloadbabel-f51cd7d325a19dbff0c27ee7b6eceb0a35015c43.tar.gz
Make sure the fix also works for multiple translator comments. Refs #119.
Diffstat (limited to 'babel')
-rw-r--r--babel/messages/tests/extract.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/babel/messages/tests/extract.py b/babel/messages/tests/extract.py
index 7436e6c..2c1139b 100644
--- a/babel/messages/tests/extract.py
+++ b/babel/messages/tests/extract.py
@@ -74,6 +74,11 @@ add_notice(req, _("Locale deleted."))
# NOTE: This Comment SHOULD Be Extracted
add_notice(req, ngettext("Foo deleted.", "Foos deleted.", len(selected)))
+
+# NOTE: This Comment SHOULD Be Extracted
+# NOTE: And This One Too
+add_notice(req, ngettext("Bar deleted.",
+ "Bars deleted.", len(selected)))
""")
messages = list(extract.extract_python(buf, ('ngettext','_'), ['NOTE:'],
@@ -90,6 +95,11 @@ add_notice(req, ngettext("Foo deleted.", "Foos deleted.", len(selected)))
u'Catalogs deleted.', None),
[u'NOTE: This Comment SHOULD Be Extracted']),
messages[0])
+ self.assertEqual((15, 'ngettext', (u'Bar deleted.', u'Bars deleted.',
+ None),
+ [u'NOTE: This Comment SHOULD Be Extracted',
+ u'NOTE: And This One Too']),
+ messages[3])
def test_declarations(self):
buf = StringIO("""\