Yet another batch of : :: and no break spaces... (#1148)

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)
This commit is contained in:
Julien Palard 2020-02-05 23:32:21 +01:00 committed by GitHub
commit 5646bc52a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,4 +46,4 @@ msgid ""
"something like this::"
msgstr ""
"Pour écrire une boucle itérant un itérateur, le code C devrait ressembler "
"à : ::"
"à ::"