diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-07-23 21:19:01 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-07-23 21:19:01 -0300 |
commit | ca8e0bb06ad6ada98a1548c6eb4f9593f80c2419 (patch) | |
tree | 2b98faed82e94b5c0b8baedfa42822fc0bfbcad0 | |
parent | d8293fdf4f20b408b159705d08bdcedcb4b6595e (diff) | |
download | tools-ca8e0bb06ad6ada98a1548c6eb4f9593f80c2419.tar.gz tools-ca8e0bb06ad6ada98a1548c6eb4f9593f80c2419.tar.bz2 tools-ca8e0bb06ad6ada98a1548c6eb4f9593f80c2419.tar.xz tools-ca8e0bb06ad6ada98a1548c6eb4f9593f80c2419.zip |
Minor updates to l'edit
-rwxr-xr-x | ledit/ledit.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ledit/ledit.py b/ledit/ledit.py index ce9b256..b335dab 100755 --- a/ledit/ledit.py +++ b/ledit/ledit.py @@ -68,7 +68,7 @@ else: ln = "pt_BR" ## Open the PO file and report current completion -print("Opening \"%s\"...", fn) +print("Opening \"%s\"... #0 is female, #1 is male", fn) po=polib.pofile(fn) cnt=0 print("Current progress: "+str(po.percent_translated())+"%") @@ -76,7 +76,7 @@ print("Current progress: "+str(po.percent_translated())+"%") ## Define the scopes, they should be completed in order scope_list=[("Nard Ship", "npc/002-", "npc/000-"), ("Candor", "npc/005-", "npc/006-2"), - ("Databases", "db/", "npc/functions", "npc/items", "npc/config", "npc/craft", "npc/016-"), + ("Databases", "db/", "npc/functions", "npc/items", "npc/config", "npc/craft", "npc/016-", "item_db", "mob_db"), ("Tonori", "npc/003-", "npc/004-", "npc/007-"), ("Hurnscald", "npc/012-", "npc/013-", "npc/014-", "npc/015-"), ("Halinarzo", "npc/009-", "npc/010-", "npc/011-"), @@ -132,8 +132,10 @@ def save(widget): translated=translated.replace('\r','') if translated.endswith("\n"): translated=translated[:-1] - print("»" + translated) - polist[0].msgstr=translated + ## ...Or don't, if it is already blank (...not really needed) + if (translated.strip() != ""): + print("»" + translated) + polist[0].msgstr=translated polist.pop(0) po.save() cnt+=1 |