Issue #46 resolved

should split flags on "," rather than ", "

Jakub Wilk
created an issue

This is how the PO parser split flags:

self.current_token[3:].split(', ')

This is not correct; there is no requirement that the splittng comma is followed by a space.

Please see the attachment for a test-case. msgfmt considers the message fuzzy:

$ msgfmt -v messages.po
0 translated messages, 1 fuzzy translation.

But there are no fuzzy messages according to polib:

>>> polib.pofile('messages.po')
>>> len(p.fuzzy_entries())

Comments (2)

  1. Log in to comment