diff --git a/SPEx/scripts/releaseLanguages.py b/SPEx/scripts/releaseLanguages.py index 9c38612..5e4d4ca 100644 --- a/SPEx/scripts/releaseLanguages.py +++ b/SPEx/scripts/releaseLanguages.py @@ -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 \ No newline at end of file diff --git a/SPEx/spex/userInterface/resources/translations/mainwindow_en.qm b/SPEx/spex/userInterface/resources/translations/mainwindow_en.qm index 3a43d0a..307cf3c 100644 Binary files a/SPEx/spex/userInterface/resources/translations/mainwindow_en.qm and b/SPEx/spex/userInterface/resources/translations/mainwindow_en.qm differ