Skip to content

parse content of obsolete entries#19

Merged
arashm merged 3 commits intoarashm:masterfrom
experteer:master
Jun 3, 2017
Merged

parse content of obsolete entries#19
arashm merged 3 commits intoarashm:masterfrom
experteer:master

Conversation

@dfherr
Copy link
Copy Markdown
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
Copy Markdown

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