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
..
compound_stmts.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
datamodel.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
executionmodel.po Revue de reference - part 1 (#1112) 2020-01-04 15:24:57 +01:00
expressions.po venv.po, unicode.po, datastructures.po complete (#917) 2019-12-29 19:05:51 +01:00
grammar.po Uniformize project-id-version. (#1041) 2019-12-05 23:15:54 +01:00
import.po Revue de reference - part 1 (#1112) 2020-01-04 15:24:57 +01:00
index.po Revue de reference - part 1 (#1112) 2020-01-04 15:24:57 +01:00
introduction.po Revue de reference - part 1 (#1112) 2020-01-04 15:24:57 +01:00
lexical_analysis.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
simple_stmts.po Yet another batch of : :: and no break spaces... (#1148) 2020-02-05 23:32:21 +01:00
toplevel_components.po Revue de reference - part 1 (#1112) 2020-01-04 15:24:57 +01:00