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

I need to process tcomment field in pofile entries #61

Open
christopheNan opened this issue Apr 20, 2021 · 0 comments
Open

I need to process tcomment field in pofile entries #61

christopheNan opened this issue Apr 20, 2021 · 0 comments

Comments

@christopheNan
Copy link

padpo implements its own parser of .po files and entries.
The idea is to enable the translator to tell padpo that he deliberately knows there is a false positive. The translator would do it in writing a pragma in the "translator comment" field.
The way padpo parses the .po file does not enable this feature.
I would recommend to use the polib library which give access to "translator comment" field.

christopheNan added a commit to christopheNan/padpo that referenced this issue Apr 22, 2021
…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.
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

No branches or pull requests

1 participant