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

PoC using polib and how to silent padpo on false positives #64

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

christopheNan
Copy link

POC in relation with #61

polib:

  • replacement of padpo parser by polib parser is done with minimal change of
    the structure of padpo. Refactoring would be welcome.
  • linelength checker is deleted as polib does not provide msgstr in vanilla
    form.
    Job can be done by powrap
  • changes validated only on test files!

silent padpo:

  • 2 tags are provided as a POC: 1 for glossary and 1 for nbsp
  • polib is needed as padpo parser does not provide access to 'translator
    comment' field.

vpoulailleau and others added 15 commits February 2, 2021 14:49
…tives

POC in relation with AFPy#61

polib:
* replacement of padpo parser by polib parser is done with minimal change of
  the structure of padpo. Refactoring would be welcome.
* linelength checker is deleted as polib does not provide msgstr in vanilla
  form.
  Job can be done by powrap
* changes validated only on test files!

silent padpo:
* 2 tags are provided as a POC: 1 for glossary and 1 for nbsp
* polib is needed as padpo parser does not provide access to 'translator
  comment' field.
May not be the best way to do it as it does not use the *warning*
instance returned by Grammalecte.
The filter_out functions may be more appropriate but they do not
access the tcomment field.
--> would be nice to refactor to get the best of the two approaches.
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.

2 participants