3 Commits

Author SHA1 Message Date
cc817e4684 rigenerata traduzione mainwindow 2020-10-23 14:47:22 +02:00
efee2b786b rinominati file traduzione 2020-10-23 14:41:38 +02:00
de5e3302f3 aggiunti commenti, corretto bottone avanti in mainwindow 2020-10-23 14:34:53 +02:00
14 changed files with 14 additions and 9 deletions

View File

@@ -6,10 +6,13 @@ Created on 10 apr 2020
import os,glob import os,glob
import subprocess import subprocess
#genera i file di traduzionae da inserire nel software a runtime
if __name__ == '__main__': if __name__ == '__main__':
tsfiles = glob.glob("..\\UserInterface\\resources\\translations\\*.ts") tsfiles = glob.glob("..\\spex\\userInterface\\resources\\translations\\*.qt.ts")
print(os.getcwd())
for ts in tsfiles: 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].split(".")[0]+".qm"
subprocess.run(f'lrelease.exe {ts} -qm {tso}') subprocess.run(f'C:\\Qt\\5.12.2\\mingw73_64\\bin\\lrelease.exe {ts} -qm {tso}')
os.chdir("..\\SPEx\\userInterface") os.chdir("..\\spex\\userInterface")
pass pass

View File

@@ -7,6 +7,8 @@ import os,glob
import subprocess import subprocess
langs = ["en"] langs = ["en"]
# crea i file ts dalle interfacce, da usare solo se si e' modificato qualcosa nelle interfacce
if __name__ == '__main__': if __name__ == '__main__':
uifiles = glob.glob("..\\*\\*.ui", recursive=True) uifiles = glob.glob("..\\*\\*.ui", recursive=True)
pyfiles = ['..\\SPEx\\guimain.py','..\\SPEx\\libbananasplit\\libsplit.py','..\\SPEx\\libbananasplit\\libconfload.py'] pyfiles = ['..\\SPEx\\guimain.py','..\\SPEx\\libbananasplit\\libsplit.py','..\\SPEx\\libbananasplit\\libconfload.py']

View File

@@ -10,7 +10,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>680</width> <width>680</width>
<height>620</height> <height>622</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
@@ -445,7 +445,7 @@ p, li { white-space: pre-wrap; }
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>680</width> <width>680</width>
<height>25</height> <height>26</height>
</rect> </rect>
</property> </property>
<property name="nativeMenuBar"> <property name="nativeMenuBar">

View File

@@ -10,7 +10,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>680</width> <width>680</width>
<height>620</height> <height>622</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
@@ -445,7 +445,7 @@ p, li { white-space: pre-wrap; }
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>680</width> <width>680</width>
<height>25</height> <height>26</height>
</rect> </rect>
</property> </property>
<property name="nativeMenuBar"> <property name="nativeMenuBar">

View File

@@ -78,7 +78,7 @@ p, li { white-space: pre-wrap; }
<message> <message>
<location filename="../../mainwindow.ui" line="398"/> <location filename="../../mainwindow.ui" line="398"/>
<source>Avanti</source> <source>Avanti</source>
<translation>OK</translation> <translation type="unfinished">Next</translation>
</message> </message>
<message> <message>
<location filename="../../mainwindow.ui" line="437"/> <location filename="../../mainwindow.ui" line="437"/>