]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
More than two plural forms work nowadays. Adjust the test.
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Fri, 19 Feb 2010 14:12:41 +0000 (14:12 +0000)
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Fri, 19 Feb 2010 14:12:41 +0000 (14:12 +0000)
babel/messages/tests/pofile.py

index 9416a50f0d848232a232dabb64aaed135398af8e..e242ac7ea09446967270082daa2981e9d652851c 100644 (file)
@@ -215,14 +215,14 @@ msgstr[1] "Vohs"''')
         buf = StringIO(r'''msgid "foo"
 msgid_plural "foo"
 msgstr[0] "Voh"
-msgstr[1] "Vohs"''') # last translation form is missing
-#msgstr[2] "Vohss"''')
+msgstr[1] "Vohs"
+msgstr[2] "Vohss"''')
         catalog = pofile.read_po(buf, locale='lv_LV')
         self.assertEqual(1, len(catalog))
         self.assertEqual(3, catalog.num_plurals)
         message = catalog['foo']
         self.assertEqual(3, len(message.string))
-        self.assertEqual('', message.string[2])
+        self.assertEqual(u'Vohss', message.string[2])
 
     def test_plural_with_square_brackets(self):
         buf = StringIO(r'''msgid "foo"