1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 11:36:37 +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
@@ -11,7 +11,7 @@
#include "language.h"
#include "account.h"
#ifdef GETTEXT_FOUND
#ifdef HAVE_LOCALIZATION
# include <libintl.h>
#endif
@@ -39,7 +39,7 @@ Module::Module(const Anope::string &modname, const Anope::string &, ModType modt
ModuleManager::Modules.push_back(this);
#if GETTEXT_FOUND
#if HAVE_LOCALIZATION
for (unsigned i = 0; i < Language::Languages.size(); ++i)
{
/* Remove .UTF-8 or any other suffix */
@@ -75,7 +75,7 @@ Module::~Module()
if (it != ModuleManager::Modules.end())
ModuleManager::Modules.erase(it);
#if GETTEXT_FOUND
#if HAVE_LOCALIZATION
std::vector<Anope::string>::iterator dit = std::find(Language::Domains.begin(), Language::Domains.end(), this->name);
if (dit != Language::Domains.end())
Language::Domains.erase(dit);