Tools: Using recursive option in lupdate script

This commit is contained in:
Yorik van Havre
2022-01-26 13:59:19 +01:00
parent 2cb478fd66
commit c1ba2962dc

View File

@@ -154,7 +154,7 @@ def update_translation(entry):
execline = []
execline.append (f"touch dummy_cpp_file_for_lupdate.cpp") #lupdate requires at least one source file to process the UI files
execline.append (f"{QMAKE} -project -o {project_filename}")
execline.append (f"{QMAKE} -project -o {project_filename} -r")
execline.append (f"sed 's/<translation.*>.*<\/translation>/<translation type=\"unfinished\"><\/translation>/g' {tsBasename}.ts > {tsBasename}.ts.temp")
execline.append (f"touch {tsBasename}.ts") # In case it didn't get created above
execline.append (f"{LUPDATE} {project_filename} -ts {tsBasename}.ts {log_redirect}")