diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-02-28 06:04:25 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-02-28 06:04:25 -0300 |
commit | 377acf04a83b22b25fa9d151e5f23675f4a41215 (patch) | |
tree | 7f6f13e44abcb49839c078d1ce43591576186d26 | |
parent | afc517e14b01556b0cc627e7a1be381a17299f4c (diff) | |
download | tools-377acf04a83b22b25fa9d151e5f23675f4a41215.tar.gz tools-377acf04a83b22b25fa9d151e5f23675f4a41215.tar.bz2 tools-377acf04a83b22b25fa9d151e5f23675f4a41215.tar.xz tools-377acf04a83b22b25fa9d151e5f23675f4a41215.zip |
updatelang.py ready
-rwxr-xr-x | web/updatelang.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/web/updatelang.py b/web/updatelang.py index c2162c3..afea960 100755 --- a/web/updatelang.py +++ b/web/updatelang.py @@ -1,10 +1,11 @@ #! /usr/bin/env python3 # -*- coding: utf8 -*- # -# Copyright (C) 2018 TMW-2 +# Copyright (C) 2018~2020 TMW-2 # Author: Jesusalva +# Note: This will "force" completion to 100%. Use review system! -import os, copy, datetime +import copy, datetime import polib, yaml defaultLang = "en" @@ -132,15 +133,15 @@ def readPoFile(lg): print("%s Progress: %d%%" % (lgname(lg), po.percent_translated())) for entry in po: - print("%s = %s" % (entry.msgid, entry.msgstr)) + #print("%s = %s" % (entry.msgid, entry.msgstr)) if entry.msgstr != "": dest=dl_search(files[lg], entry.msgid) - print("[+] %s" % dest) + #print("[+] %s" % dest) files[lg][dest]=entry.msgstr else: dest=dl_search(files[lg], entry.msgid) - print("IS EMPTY") + print("%s.%s IS EMPTY" % (lg, dest)) files[lg][dest]=originals[dest] # [OK] Save the new YML file |