forked from AFPy/padpo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proof of concept of using polib and how to silent padpo on false posi…
…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.
- Loading branch information
1 parent
9a96d20
commit 78b9eda
Showing
12 changed files
with
86 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#: ../Doc/library/typing.rst:594 | ||
msgid "An ABC with one abstract method ``__int__``." | ||
msgstr "" | ||
msgstr "Une ABC avec une méthode abstraite ``__int__``." | ||
"Une ABC avec une méthode abstraite ``__int__``." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# example how to silent glossary warning | ||
# first entry: 'statement' is correctly translated by a word found in the glossary | ||
# --> nothing to do | ||
# second entry: 'tuple' is translated by a word not corresponding in the glossary, but that we know correct | ||
# --> we silent padpo | ||
|
||
#: glossary.rst:25 | ||
msgid "statement" | ||
msgstr "instruction" | ||
|
||
# silent-glossary:`tuple` | ||
#: glossary.rst:39 | ||
msgid "tuple" | ||
msgstr "couple" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# example how to silent nbsp warnings | ||
# first entry is ok, with a nbsp before question mark | ||
# second entry raises a warning because of the walrus operator analysed as a colon | ||
# we silent padpo warning with a silent-nbsp-after tag | ||
|
||
#: test-nsbsp.rst:25 | ||
msgid "What a question?" | ||
msgstr "Quelle question ?" | ||
|
||
# silent-nbsp-after:`morse` | ||
#: test-nbsp.rst:39 | ||
msgid "the walrus operator `:=` is a new feature" | ||
msgstr "l'opérateur morse `:=` est fantastique" |