Ça commence à marcher, par contre on a un souci avec un :rfc: dans pospell :
<rst-doc>:1: (ERROR/3) RFC number must be a number greater than or equal to 1; "la spécification correspondante <5424#section-6>" is invalid. while parsing: La :rfc:`5424` requiert qu’un message Unicode soit envoyé à un démon *syslog* sous la forme d’un ensemble d’octets ayant la structure suivante : un composant ASCII pur facultatif, suivi d’une marque d’ordre d’octet (*BOM* pour *Byte Order Mark* en anglais) UTF-8, suivie de contenu Unicode UTF-8 (voir la :rfc:`la spécification correspondante <5424#section-6>`).
Reviewed-on: AFPy/python-docs-fr#118
la fuzzy était un changement de tiret en anglais qui n'existait pas en français
Co-authored-by: Mathieu Dupuy <deronnax@gmail.com>
Reviewed-on: AFPy/python-docs-fr#102
Co-authored-by: deronnax <deronnax@noreply.localhost>
Co-committed-by: deronnax <deronnax@noreply.localhost>
import polib
import pathlib
def check(file):
pofile = polib.pofile(file)
for entry in pofile:
if not entry.msgstr:
continue
if entry.msgid.endswith(" ::"):
entry.msgstr = entry.msgstr.rstrip(": \u202f\u00A0") + " ::"
if entry.msgid.endswith("::") and not entry.msgid.endswith(" ::"):
entry.msgstr = entry.msgstr.rstrip(": ,. \u202f\u00A0") + "\u00A0::"
pofile.save()
for file in pathlib.Path(".").glob("*.po"):
check(file)
for file in pathlib.Path(".").glob("*/*.po"):
check(file)
Merci pour cette PR.
Encore une fois, tu peux toi-même « résoudre » les conversations sur lesquelles on te fait des remarques. Ça nous permet de savoir quand tu as corrigé tous les points qu'on t'a remontés et merger.
* Disambiguate option/paramètre to avoid using flags in french.
* pospell on a few directories.
* FIX differences between my Hunspell version and travis one.
* Nice try.
* Hunspell 1.3.2, please.
* FIX feedback from Christophe.
* De mieux en mieux.