From d5a653fe9406f35dbbaf5b5c4b83e3a46372722b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 19 May 2026 16:14:14 +0100 Subject: [PATCH] Make it clearer how to enable localisation. --- CMakeLists.txt | 4 ++-- src/language.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d5f9e26e..d43732d56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,12 +43,12 @@ endif() # Find gettext find_package(Gettext) find_package(Intl) -if(GETTEXT_FOUND AND Intl_FOUND) +if(Gettext_FOUND AND Intl_FOUND) set(HAVE_LOCALIZATION ON) include_directories(${Intl_INCLUDE_DIRS}) link_libraries(${Intl_LIBRARIES}) else() - message("Unable to find gettext and libintl; disabling localization") + message(STATUS "Unable to find gettext and/or libintl -- read docs/LANGUAGE for how to enable localization") set(HAVE_LOCALIZATION OFF) endif() diff --git a/src/language.cpp b/src/language.cpp index f86f8b8f1..423dacb6a 100644 --- a/src/language.cpp +++ b/src/language.cpp @@ -54,7 +54,7 @@ void Language::InitLanguages() Languages.push_back(language); } #else - Log() << "Unable to initialize languages, gettext is not installed"; + Log() << "Unable to initialize languages, gettext and/or libintl were not installed at build time"; #endif }