16 lines
408 B
Python
16 lines
408 B
Python
'''
|
|
Created on 10 apr 2020
|
|
|
|
@author: Emanuele Trabattoni
|
|
'''
|
|
import os,glob
|
|
import subprocess
|
|
langs = ["en"]
|
|
|
|
if __name__ == '__main__':
|
|
uifiles = glob.glob("..\\*\\*.ui", recursive=True)
|
|
for l in langs:
|
|
for ui in uifiles:
|
|
uio = "..\\UserInterface\\resources\\translations\\"+os.path.splitext((os.path.split(ui)[1]))[0]+f"_{l}.ts"
|
|
subprocess.run(f'lupdate.exe {ui} -ts {uio}')
|
|
pass |