# HG changeset patch # User jruigrok # Date 1266588956 0 # Node ID 02a4a0f6e6d05e76163521223f66736f0d3992b3 # Parent 1056b2e7bad2d4190526085114280faac16abd8f Actually make the msgid_plural be a plural as per typical use case. diff --git a/babel/messages/tests/pofile.py b/babel/messages/tests/pofile.py --- a/babel/messages/tests/pofile.py +++ b/babel/messages/tests/pofile.py @@ -192,7 +192,7 @@ def test_single_plural_form(self): buf = StringIO(r'''msgid "foo" -msgid_plural "foo" +msgid_plural "foos" msgstr[0] "Voh"''') catalog = pofile.read_po(buf, locale='ja_JP') self.assertEqual(1, len(catalog)) @@ -202,7 +202,7 @@ def test_singular_plural_form(self): buf = StringIO(r'''msgid "foo" -msgid_plural "foo" +msgid_plural "foos" msgstr[0] "Voh" msgstr[1] "Vohs"''') catalog = pofile.read_po(buf, locale='nl_NL') @@ -213,7 +213,7 @@ def test_more_than_two_plural_forms(self): buf = StringIO(r'''msgid "foo" -msgid_plural "foo" +msgid_plural "foos" msgstr[0] "Voh" msgstr[1] "Vohs" msgstr[2] "Vohss"''') @@ -226,7 +226,7 @@ def test_plural_with_square_brackets(self): buf = StringIO(r'''msgid "foo" -msgid_plural "foo" +msgid_plural "foos" msgstr[0] "Voh [text]" msgstr[1] "Vohs [text]"''') catalog = pofile.read_po(buf, locale='nb_NO')