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:
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user