Skip to content

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