From de5e3302f336601045a2d2189bde10283b426764 Mon Sep 17 00:00:00 2001 From: Emanuele Date: Fri, 23 Oct 2020 14:34:53 +0200 Subject: [PATCH] aggiunti commenti, corretto bottone avanti in mainwindow --- SPEx/scripts/releaseLanguages.py | 8 +++++--- SPEx/scripts/updateLanguages.py | 2 ++ SPEx/spex/UserInterface/mainwindow.ui | 4 ++-- SPEx/spex/userInterface/mainwindow.ui | 4 ++-- .../userInterface/resources/translations/mainwindow_en.ts | 2 +- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/SPEx/scripts/releaseLanguages.py b/SPEx/scripts/releaseLanguages.py index a3aeb7f..49f363f 100644 --- a/SPEx/scripts/releaseLanguages.py +++ b/SPEx/scripts/releaseLanguages.py @@ -6,10 +6,12 @@ Created on 10 apr 2020 import os,glob import subprocess +#genera i file di traduzionae da inserire nel software a runtime + if __name__ == '__main__': - tsfiles = glob.glob("..\\UserInterface\\resources\\translations\\*.ts") + tsfiles = glob.glob("..\\spex\\userInterface\\resources\\translations\\*.ts") for ts in tsfiles: - tso = "..\\SPEx\\userInterface\\resources\\translations\\"+os.path.splitext((os.path.split(ts)[1]))[0]+".qm" + tso = "..\\spex\\userInterface\\resources\\translations\\"+os.path.splitext((os.path.split(ts)[1]))[0]+".qm" subprocess.run(f'lrelease.exe {ts} -qm {tso}') - os.chdir("..\\SPEx\\userInterface") + os.chdir("..\\spex\\userInterface") pass \ No newline at end of file diff --git a/SPEx/scripts/updateLanguages.py b/SPEx/scripts/updateLanguages.py index 68e9151..b61ec97 100644 --- a/SPEx/scripts/updateLanguages.py +++ b/SPEx/scripts/updateLanguages.py @@ -7,6 +7,8 @@ import os,glob import subprocess langs = ["en"] +# crea i file ts dalle interfacce, da usare solo se si e' modificato qualcosa nelle interfacce + if __name__ == '__main__': uifiles = glob.glob("..\\*\\*.ui", recursive=True) pyfiles = ['..\\SPEx\\guimain.py','..\\SPEx\\libbananasplit\\libsplit.py','..\\SPEx\\libbananasplit\\libconfload.py'] diff --git a/SPEx/spex/UserInterface/mainwindow.ui b/SPEx/spex/UserInterface/mainwindow.ui index 068259e..dd4453b 100644 --- a/SPEx/spex/UserInterface/mainwindow.ui +++ b/SPEx/spex/UserInterface/mainwindow.ui @@ -10,7 +10,7 @@ 0 0 680 - 620 + 622 @@ -445,7 +445,7 @@ p, li { white-space: pre-wrap; } 0 0 680 - 25 + 26 diff --git a/SPEx/spex/userInterface/mainwindow.ui b/SPEx/spex/userInterface/mainwindow.ui index 068259e..dd4453b 100644 --- a/SPEx/spex/userInterface/mainwindow.ui +++ b/SPEx/spex/userInterface/mainwindow.ui @@ -10,7 +10,7 @@ 0 0 680 - 620 + 622 @@ -445,7 +445,7 @@ p, li { white-space: pre-wrap; } 0 0 680 - 25 + 26 diff --git a/SPEx/spex/userInterface/resources/translations/mainwindow_en.ts b/SPEx/spex/userInterface/resources/translations/mainwindow_en.ts index a9438ff..4b3b15e 100644 --- a/SPEx/spex/userInterface/resources/translations/mainwindow_en.ts +++ b/SPEx/spex/userInterface/resources/translations/mainwindow_en.ts @@ -78,7 +78,7 @@ p, li { white-space: pre-wrap; } Avanti - OK + Next