Include i18n files in the minimal zip files
This commit is contained in:
@@ -274,6 +274,14 @@ def makeMinimalPackage(targetOS):
|
|||||||
print(str(e))
|
print(str(e))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
# Make translation files
|
||||||
|
try:
|
||||||
|
buildQtI18n()
|
||||||
|
except Exception as e:
|
||||||
|
print("Failed with error:")
|
||||||
|
print(str(e))
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
print("")
|
print("")
|
||||||
print("Building Minimal ZIP File")
|
print("Building Minimal ZIP File")
|
||||||
print("=========================")
|
print("=========================")
|
||||||
@@ -318,6 +326,15 @@ def makeMinimalPackage(targetOS):
|
|||||||
continue
|
continue
|
||||||
zipObj.write(os.path.join(nRoot, aFile))
|
zipObj.write(os.path.join(nRoot, aFile))
|
||||||
|
|
||||||
|
for aFile in os.listdir("i18n"):
|
||||||
|
i18File = os.path.join("i18n", aFile)
|
||||||
|
if not os.path.isfile(i18File):
|
||||||
|
continue
|
||||||
|
|
||||||
|
if i18File.endswith((".json", ".qm")):
|
||||||
|
zipObj.write(i18File)
|
||||||
|
print("Adding File: %s" % i18File)
|
||||||
|
|
||||||
if targetOS == OS_WIN:
|
if targetOS == OS_WIN:
|
||||||
zipObj.write("novelWriter.py", "novelWriter.pyw")
|
zipObj.write("novelWriter.py", "novelWriter.pyw")
|
||||||
print("Adding File: novelWriter.pyw")
|
print("Adding File: novelWriter.pyw")
|
||||||
|
|||||||
Reference in New Issue
Block a user