mirror of
https://github.com/anope/anope.git
synced 2026-06-25 02:46:37 +02:00
Partial fix for finding gettext with CMake, still doesn't fix the lack of finding non-standard paths though.
This commit is contained in:
+2
-4
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "modules.h"
|
||||
|
||||
#ifdef HAVE_GETTEXT
|
||||
#ifdef GETTEXT_FOUND
|
||||
# include <libintl.h>
|
||||
#endif
|
||||
|
||||
@@ -29,11 +29,9 @@ Module::Module(const Anope::string &mname, const Anope::string &creator)
|
||||
|
||||
Modules.push_back(this);
|
||||
|
||||
#if HAVE_GETTEXT
|
||||
#if GETTEXT_FOUND
|
||||
if (!bindtextdomain(this->name.c_str(), (services_dir + "/languages/").c_str()))
|
||||
{
|
||||
Log() << "Error calling bindtextdomain, " << Anope::LastError();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user