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)
* Proposition de traduction pour mapping.po * Corrections de fautes de frappe : object=>objet et c:func:=>:c:func: * "supporte" => "prend en charge" dans c-api/ampping.po Co-Authored-By: Antoine <43954001+awecx@users.noreply.github.com> * Update c-api/mapping.po Co-Authored-By: Antoine <43954001+awecx@users.noreply.github.com> * Update c-api/mapping.po Co-Authored-By: Antoine <43954001+awecx@users.noreply.github.com> * correction d'un accord, reformulation pour introduire l'idée de str *temporaire* * Update c-api/mapping.po : liste => tuple Co-Authored-By: Antoine <43954001+awecx@users.noreply.github.com> * objet->object en VO * Update c-api/mapping.po : 'tuple'->'n-uplet' ; 'k/v'->'k-v' Co-Authored-By: Antoine <43954001+awecx@users.noreply.github.com> * Update c-api/mapping.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Suppression des commentaires résolus * Suppression des vigules avant les 'et' * Update c-api/mapping.po Co-Authored-By: Antoine <43954001+awecx@users.noreply.github.com> * Update c-api/mapping.po correction de la traduction de _slicing_ Co-Authored-By: Antoine <43954001+awecx@users.noreply.github.com> * powrap sur c-api/mapping.po * Correction d'un accord dans c-api/mapping.po et ajout d'une espace Co-authored-by: Antoine <43954001+awecx@users.noreply.github.com> Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>