Julien Palard 5646bc52a4
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)
2020-02-05 23:32:21 +01:00
..
appendix.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
appetite.po Revue de tutorial (#1110) 2020-01-03 09:30:37 +01:00
classes.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
controlflow.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
datastructures.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
errors.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
floatingpoint.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
index.po Uniformize project-id-version. (#1041) 2019-12-05 23:15:54 +01:00
inputoutput.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
interactive.po Suite de la revue de tutorial (#1111) 2020-01-04 12:02:46 +01:00
interpreter.po FIX: Excès de zèle sur les espaces insécables. (#1098) 2019-12-14 22:27:27 +01:00
introduction.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
modules.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
stdlib.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
stdlib2.po Suite de la revue de tutorial (#1111) 2020-01-04 12:02:46 +01:00
venv.po use padpo on tutorial/venv.po, translate one empty (#1064) 2019-12-12 16:28:57 +01:00
whatnow.po Suite de la revue de tutorial (#1111) 2020-01-04 12:02:46 +01:00