1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 19:33:12 +02:00

Changed the language system to use gettext

This commit is contained in:
Adam
2010-09-26 02:33:01 -04:00
parent 05e6815d91
commit d646d455e2
239 changed files with 168730 additions and 90259 deletions
+4 -4
View File
@@ -291,13 +291,13 @@ class CommandSQLSync : public Command
bool OnHelp(User *u, const Anope::string &subcommand)
{
notice_help(Config->s_OperServ, u, OPER_HELP_SYNC);
u->SendMessage(OperServ, OPER_HELP_SYNC);
return true;
}
void OnServHelp(User *u)
{
notice_lang(Config->s_OperServ, u, OPER_HELP_CMD_SQLSYNC);
u->SendMessage(OperServ, OPER_HELP_CMD_SQLSYNC);
}
};
@@ -429,7 +429,7 @@ class DBMySQL : public Module
}
}
nc->language = r.Get(i, "language").is_number_only() ? convertTo<int>(r.Get(i, "language")) : LANG_EN_US;
nc->language = r.Get(i, "language");
nc->channelcount = r.Get(i, "channelcount").is_number_only() ? convertTo<int>(r.Get(i, "channelcount")) : 0;
nc->memos.memomax = r.Get(i, "memomax").is_number_only() ? convertTo<int>(r.Get(i, "memomax")) : 20;
}
@@ -1533,7 +1533,7 @@ static void SaveDatabases()
CommandReturn CommandSQLSync::Execute(User *u, const std::vector<Anope::string> &params)
{
SaveDatabases();
notice_lang(Config->s_OperServ, u, OPER_SYNC_UPDATED);
u->SendMessage(OperServ, OPER_SYNC_UPDATED);
return MOD_CONT;
}