rigenerata traduzione mainwindow

This commit is contained in:
2020-10-23 14:47:22 +02:00
parent efee2b786b
commit cc817e4684
2 changed files with 3 additions and 3 deletions

View File

@@ -9,10 +9,10 @@ import subprocess
#genera i file di traduzionae da inserire nel software a runtime
if __name__ == '__main__':
tsfiles = glob.glob("..\\spex\\userInterface\\resources\\translations\\*.ts")
tsfiles = glob.glob("..\\spex\\userInterface\\resources\\translations\\*.qt.ts")
print(os.getcwd())
for ts in tsfiles:
tso = "..\\spex\\userInterface\\resources\\translations\\"+os.path.splitext((os.path.split(ts)[1]))[0]+".qm"
subprocess.run(f'lrelease.exe {ts} -qm {tso}')
tso = "..\\spex\\userInterface\\resources\\translations\\"+os.path.splitext((os.path.split(ts)[1]))[0].split(".")[0]+".qm"
subprocess.run(f'C:\\Qt\\5.12.2\\mingw73_64\\bin\\lrelease.exe {ts} -qm {tso}')
os.chdir("..\\spex\\userInterface")
pass