cmake: Windows translations live in lang/, not l10n/

QET_LANG_PATH was "l10n/" for WIN32, a value that appears nowhere else in
the tree: the MSI shortcuts pass --lang-dir="[INSTALLDIR]lang/", and the
windows-build workflow copies the .qm files into files/lang/. So the
compiled-in default pointed at a directory no packaging creates, leaving
the command-line argument to do all the work.

Align it with what is actually shipped, so the binary-relative lookup
added in the previous commit can find the translations on its own.
This commit is contained in:
ispyisail
2026-07-26 22:41:44 +12:00
parent d4ec9f9c65
commit 3ffa0194c7
+4 -1
View File
@@ -58,7 +58,10 @@ if(WIN32)
set(QET_BINARY_PATH "./") set(QET_BINARY_PATH "./")
set(QET_COMMON_COLLECTION_PATH "elements/") set(QET_COMMON_COLLECTION_PATH "elements/")
set(QET_COMMON_TBT_PATH "titleblocks/") set(QET_COMMON_TBT_PATH "titleblocks/")
set(QET_LANG_PATH "l10n/") # "lang/" and not "l10n/": that is where every Windows packaging actually
# puts the .qm files (see build-aux/windows/QElectroTech.wxs and the
# windows-build workflow), and what the shortcuts pass as --lang-dir.
set(QET_LANG_PATH "lang/")
set(QET_LICENSE_PATH "./") set(QET_LICENSE_PATH "./")
# Liste des ressources Windows # Liste des ressources Windows
#RC_FILE = qelectrotech.rc #RC_FILE = qelectrotech.rc