summaryrefslogtreecommitdiff
path: root/src/language.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-01-12 23:05:25 +0000
committerSadie Powell <sadie@witchery.services>2022-01-12 23:05:25 +0000
commit33b42ce86edd190c44db5814967981844e96b421 (patch)
treebcbb7002d16f78265019963159483c725cd978c8 /src/language.cpp
parenta631028660d527f509c3b028cfa5f2903a125077 (diff)
Use the default CMake modules for finding gettext instead of our own.
Diffstat (limited to 'src/language.cpp')
-rw-r--r--src/language.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/language.cpp b/src/language.cpp
index 8c39941b4..219bf846c 100644
--- a/src/language.cpp
+++ b/src/language.cpp
@@ -15,7 +15,7 @@
#include "config.h"
#include "language.h"
-#if GETTEXT_FOUND
+#if HAVE_LOCALIZATION
# include <libintl.h>
#endif
@@ -24,7 +24,7 @@ std::vector<Anope::string> Language::Domains;
void Language::InitLanguages()
{
-#if GETTEXT_FOUND
+#if HAVE_LOCALIZATION
Log(LOG_DEBUG) << "Initializing Languages...";
Languages.clear();
@@ -73,7 +73,7 @@ const char *Language::Translate(const NickCore *nc, const char *string)
return Translate(nc ? nc->language.c_str() : "", string);
}
-#if GETTEXT_FOUND
+#if HAVE_LOCALIZATION
#if defined(__GLIBC__) && defined(__USE_GNU_GETTEXT)
extern "C" int _nl_msg_cat_cntr;