1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 06:26:38 +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
+7 -7
View File
@@ -26,7 +26,7 @@ class CommandBSBotList : public Command
if (BotListByNick.empty())
{
notice_lang(Config->s_BotServ, u, BOT_BOTLIST_EMPTY);
u->SendMessage(BotServ, BOT_BOTLIST_EMPTY);
return MOD_CONT;
}
@@ -37,7 +37,7 @@ class CommandBSBotList : public Command
if (!bi->HasFlag(BI_PRIVATE))
{
if (!count)
notice_lang(Config->s_BotServ, u, BOT_BOTLIST_HEADER);
u->SendMessage(BotServ, BOT_BOTLIST_HEADER);
++count;
u->SendMessage(Config->s_BotServ, " %-15s (%s@%s)", bi->nick.c_str(), bi->GetIdent().c_str(), bi->host.c_str());
}
@@ -45,7 +45,7 @@ class CommandBSBotList : public Command
if (u->Account()->HasCommand("botserv/botlist") && count < BotListByNick.size())
{
notice_lang(Config->s_BotServ, u, BOT_BOTLIST_PRIVATE_HEADER);
u->SendMessage(BotServ, BOT_BOTLIST_PRIVATE_HEADER);
for (botinfo_map::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it)
{
@@ -60,22 +60,22 @@ class CommandBSBotList : public Command
}
if (!count)
notice_lang(Config->s_BotServ, u, BOT_BOTLIST_EMPTY);
u->SendMessage(BotServ, BOT_BOTLIST_EMPTY);
else
notice_lang(Config->s_BotServ, u, BOT_BOTLIST_FOOTER, count);
u->SendMessage(BotServ, BOT_BOTLIST_FOOTER, count);
return MOD_CONT;
}
bool OnHelp(User *u, const Anope::string &subcommand)
{
notice_help(Config->s_BotServ, u, BOT_HELP_BOTLIST);
u->SendMessage(BotServ, BOT_HELP_BOTLIST);
return true;
}
void OnServHelp(User *u)
{
notice_lang(Config->s_BotServ, u, BOT_HELP_CMD_BOTLIST);
u->SendMessage(BotServ, BOT_HELP_CMD_BOTLIST);
}
};