You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unification de SPACE COLON SPACE COLON COLON en NBSP COLON COLON.
via:
import polib
import pathlib
def check(file):
pofile = polib.pofile(file)
for entry in pofile:
if not entry.msgstr:
continue
if entry.msgid.endswith(" ::"):
continue
if entry.msgid.endswith("::") and entry.msgstr.endswith(" : ::"):
entry.msgstr = entry.msgstr.replace(" : ::", " ::")
pofile.save()
for file in pathlib.Path(".").glob("*.po"):
check(file)
for file in pathlib.Path(".").glob("*/*.po"):
check(file)
0 commit comments