Translations: Fixed BIM translations

This commit is contained in:
Yorik van Havre
2024-07-09 16:46:38 +02:00
committed by Yorik van Havre
parent 855bdeb3fe
commit 99aeb89ddb
65 changed files with 179494 additions and 40704 deletions

View File

@@ -92,7 +92,7 @@ LEGACY_NAMING_MAP = {"Draft.ts": "draft.ts"}
# Locations that require QM file generation (predominantly Python workbenches)
GENERATE_QM = {
"AddonManager",
"BIM",
"Arch",
"Cloud",
"Draft",
"Inspection",
@@ -110,7 +110,7 @@ locations = [
"../Mod/AddonManager/Resources/AddonManager.qrc",
],
["App", "../App/Resources/translations", "../App/Resources/App.qrc"],
["BIM", "../Mod/Arch/Resources/translations", "../Mod/Arch/Resources/Arch.qrc"],
["Arch", "../Mod/BIM/Resources/translations", "../Mod/BIM/Resources/Arch.qrc"],
[
"Assembly",
"../Mod/Assembly/Gui/Resources/translations",
@@ -452,6 +452,7 @@ def doFile(tsfilepath, targetpath, lncode, qrcpath):
return
shutil.copyfile(tsfilepath, newpath)
if basename in GENERATE_QM:
# print("generating qm files for",newpath,"...")
try:
subprocess.run(
[