mirror of
https://github.com/anope/anope.git
synced 2026-06-28 22:16:37 +02:00
Split up db/conf/lib/locale install directories, and allow alternate ones to be specified at runtime
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ Module::Module(const Anope::string &modname, const Anope::string &, ModType modt
|
||||
for (unsigned i = 0; i < languages.size(); ++i)
|
||||
if (IsFile("languages/" + languages[i] + "/LC_MESSAGES/" + modname + ".mo"))
|
||||
{
|
||||
if (!bindtextdomain(this->name.c_str(), (services_dir + "/languages/").c_str()))
|
||||
if (!bindtextdomain(this->name.c_str(), locale_dir.c_str()))
|
||||
Log() << "Error calling bindtextdomain, " << Anope::LastError();
|
||||
else
|
||||
domains.push_back(modname);
|
||||
|
||||
Reference in New Issue
Block a user