Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse content of obsolete entries #19

Merged
merged 3 commits into from
Jun 3, 2017
Merged

Conversation

dfherr
Copy link
Collaborator

@dfherr dfherr commented Jun 2, 2017

Currently the obsolete parses simply one big obsolete comment with all the obsolete data in it (e.g. msgid and msgstr).

This pull requests adds functionality to the Entry class to parse the content of the obsolete comment by simply sending it without the obsolete markers to the simple_po_parser.

One caveat: The simple_po_parser is not 100% strict and will not raise an error on parsing an invalid obsolete entry (e.g. an obsolete without a msgstr), even though msgcat will. With this addition the PoParser will fail on such invalid po entries. I don't think this is a bad thing as the gettext utilities throw an error too.

@coveralls
Copy link

coveralls commented Jun 2, 2017

Coverage Status

Coverage increased (+0.06%) to 97.872% when pulling 3d3cb06 on experteer:master into b6c103a on arashm:master.

@arashm arashm merged commit c558959 into arashm:master Jun 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants