1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 20:16:36 +02:00

Use the default CMake modules for finding gettext instead of our own.

This commit is contained in:
Sadie Powell
2022-01-12 23:05:25 +00:00
parent a631028660
commit 33b42ce86e
10 changed files with 31 additions and 42 deletions
+3 -3
View File
@@ -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;