Automerge of PR #1701 by @JulienPalard
Beaucoup de fuzzies dans ce fichier viennent du fait qu'ils ont mis en italique beaucoup de "clause machin" (try, except, else, finally).
Mais en français on les avait déjà mis en police à pas fixe, donc je n'y ai pas touché, sauf à un endroit ou c'était en italique, alors j'ai mis en police a pas fix pour garder la cohérence.
* Fuzzies un peu partout
Essentiellement pour nettoyer la liste 'make todo'. La plupart des
corrections sont triviales (lorsque upstream a reçu une correction de
faute de frappe). Il y a quelques chaînes nouvellement traduites.
* Relecture de Julien Palard
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)
* 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.
Checked using and some manual proofreading:
def check_entry(po_file, entry):
if entry.msgid.endswith(' ::'):
return
if entry.msgid.endswith('::'):
if entry.msgstr.endswith(': ::'):
return
entry.msgstr = entry.msgstr.rstrip(' :. ') + ' ::'