Browse Source

Split the make_mo.py command for NSIS

tags/3.0.2RC1
Safihre 5 years ago
parent
commit
3ae149c72f
  1. 5
      tools/make_mo.py

5
tools/make_mo.py

@ -281,20 +281,19 @@ if os.path.exists(tl):
TOOL = [tl] TOOL = [tl]
result = True result = True
if len(sys.argv) > 1 and sys.argv[1] == "all": if len(sys.argv) > 1 and sys.argv[1] == "nsis":
print("NSIS MO file") print("NSIS MO file")
result = result and process_po_folder(DOMAIN_N, PON_DIR) result = result and process_po_folder(DOMAIN_N, PON_DIR)
print("Patch NSIS script") print("Patch NSIS script")
patch_nsis() patch_nsis()
else:
print("Email MO files") print("Email MO files")
result = result and process_po_folder(DOMAIN_E, POE_DIR) result = result and process_po_folder(DOMAIN_E, POE_DIR)
print("Create email templates from MO files") print("Create email templates from MO files")
make_templates() make_templates()
print("Main program MO files") print("Main program MO files")
# -n option added to remove all newlines from the translations # -n option added to remove all newlines from the translations
result = result and process_po_folder(DOMAIN, PO_DIR, "-n") result = result and process_po_folder(DOMAIN, PO_DIR, "-n")

Loading…
Cancel
Save