mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-07-30 07:44:13 +02:00
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:
@@ -58,7 +58,10 @@ if(WIN32)
|
||||
set(QET_BINARY_PATH "./")
|
||||
set(QET_COMMON_COLLECTION_PATH "elements/")
|
||||
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 "./")
|
||||
# Liste des ressources Windows
|
||||
#RC_FILE = qelectrotech.rc
|
||||
|
||||
Reference in New Issue
Block a user