Issue #2 wontfix

`msgfmt --check`-like checks by polib

indifex
created an issue

msgfmt has this --check option which checks stuff that "break" po files (and builds of software using these PO files). Examples are different number of %s's between msgid and msgstr.

http://www.gnu.org/software/hello/manual/gettext/msgfmt-Invocation.html

It'd be cool if polib could check for these things. It's really important for Transifex, since a translator using our web translator could lose all his work this way.

Comments (2)

  1. David Jean Louis repo owner
    • changed status to open

    Hi,

    just an update on this issue. I've briefly looked at the gettext documentation and what --check does is:

    • check-format : this is going a bit complicated to implement I think (I'm not sure what it really does),
    • check-header: this will be more trivial,
    • check-domain : I guess this is not relevant for polib.

    So the plan would be to add a POFile.check() method that would call POFile.check_format() and POFile.check_header().

    I'm still very busy on other things, do you guys at indifex can work on a patch for this ? I'll be happy to integrate it.

    -- David

  2. Log in to comment