def test_plural_form(self):
buf = StringIO(
(
'<html><translate translate-plural="hello {$count$} worlds!">'
'hello one world!</translate></html>'
))
messages = list(extract_angular(buf, [], [], {}))
self.assertEqual(
[
(1, 'ngettext',
('hello one world!',
'hello {$count$} worlds!'
),
[])
], messages)
评论列表
文章目录