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:
parent eb72f0ff34
commit 5646bc52a4
82 changed files with 452 additions and 456 deletions
| | @ -46,4 +46,4 @@ msgid "" | |||
"something like this::" | ||||
msgstr "" | ||||
"Pour écrire une boucle itérant un itérateur, le code C devrait ressembler " | ||||
"à : ::" | ||||
"à ::" | ||||
| | | |||
Loading…
Add table
Add a link
Reference in a new issue