diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-04-08 12:57:12 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-04-08 16:29:46 +0200 |
commit | 27902c01cc74d5d50378aa31eb6c59730d9287ab (patch) | |
tree | dd57813dd8c504b4e518a46733ad8a88d6a76038 /CMakeLists.txt | |
parent | d8acd00dff8b89d5a01cf3a24c58b1c7ea5ee99d (diff) | |
download | mana-27902c01cc74d5d50378aa31eb6c59730d9287ab.tar.gz mana-27902c01cc74d5d50378aa31eb6c59730d9287ab.tar.bz2 mana-27902c01cc74d5d50378aa31eb6c59730d9287ab.tar.xz mana-27902c01cc74d5d50378aa31eb6c59730d9287ab.zip |
Fixed choosing preferred language on Windows
The linker could not find _nl_locale_name_default. Maybe it could be
fixed by linking to another library, but it would likely not yield the
preferred behavior. Instead, we now use GetUserPreferredUILanguages to
set the LANG environment variable with one or more languages and let
gettext choose the best fitting available translation.
Also fixed the directory from which the translations are loaded to match
the installation directory,
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 889d8482..b13ead11 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,14 +25,14 @@ SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/Modules) FIND_PACKAGE(Gettext) OPTION(WITH_OPENGL "Enable OpenGL support" ON) -OPTION(ENABLE_NLS "Enable building of tranlations" ON) +OPTION(ENABLE_NLS "Enable building of translations" ON) OPTION(ENABLE_MANASERV "Enable Manaserv support" ON) OPTION(USE_SYSTEM_GUICHAN "Use system Guichan" ON) IF (WIN32) SET(PKG_DATADIR ".") + SET(LOCALEDIR "share/locale") SET(PKG_BINDIR ".") - SET(LOCALEDIR ".") ELSE (WIN32) SET(PKG_DATADIR ${CMAKE_INSTALL_PREFIX}/share/mana CACHE PATH "Mana datadir") SET(LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale) |