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

Replaced the few language strings we use with #defines to prevent accidentally translating them if we shouldnt

This commit is contained in:
Adam
2011-02-26 17:54:03 -05:00
parent 28d17a40ce
commit f234a2bfab
107 changed files with 619 additions and 630 deletions
+8 -8
View File
@@ -67,7 +67,7 @@ class AkillListCallback : public NumberList
if (!SentHeader)
source.Reply(_("No matching entries on the AKILL list."));
else
source.Reply(LanguageString::END_OF_ANY_LIST, "Akill");
source.Reply(_(END_OF_ANY_LIST), "Akill");
}
void HandleNumber(unsigned Number)
@@ -92,7 +92,7 @@ class AkillListCallback : public NumberList
static void DoList(CommandSource &source, XLine *x, unsigned Number)
{
source.Reply(LanguageString::OPER_LIST_FORMAT, Number + 1, x->Mask.c_str(), x->Reason.c_str());
source.Reply(_(OPER_LIST_FORMAT), Number + 1, x->Mask.c_str(), x->Reason.c_str());
}
};
@@ -124,7 +124,7 @@ class AkillViewCallback : public AkillListCallback
static void DoList(CommandSource &source, XLine *x, unsigned Number)
{
source.Reply(LanguageString::OPER_VIEW_FORMAT, Number + 1, x->Mask.c_str(), x->By.c_str(), do_strftime(x->Created).c_str(), expire_left(source.u->Account(), x->Expires).c_str(), x->Reason.c_str());
source.Reply(_(OPER_VIEW_FORMAT), Number + 1, x->Mask.c_str(), x->By.c_str(), do_strftime(x->Created).c_str(), expire_left(source.u->Account(), x->Expires).c_str(), x->Reason.c_str());
}
};
@@ -155,7 +155,7 @@ class CommandOSAKill : public Command
/* Do not allow less than a minute expiry time */
if (expires && expires < 60)
{
source.Reply(LanguageString::BAD_EXPIRY_TIME);
source.Reply(_(BAD_EXPIRY_TIME));
return MOD_CONT;
}
else if (expires > 0)
@@ -183,7 +183,7 @@ class CommandOSAKill : public Command
if (percent > 95)
{
source.Reply(LanguageString::USERHOST_MASK_TOO_WIDE, mask.c_str());
source.Reply(_(USERHOST_MASK_TOO_WIDE), mask.c_str());
Log(LOG_ADMIN, u, this) << "tried to akill " << percent << "% of the network (" << affected << " users)";
return MOD_CONT;
}
@@ -198,7 +198,7 @@ class CommandOSAKill : public Command
Log(LOG_ADMIN, u, this) << "on " << mask << " (" << reason << ") expires in " << duration(NULL, expires - Anope::CurTime) << " [affects " << affected << " user(s) (" << percent << "%)]";
if (readonly)
source.Reply(LanguageString::READ_ONLY_MODE);
source.Reply(_(READ_ONLY_MODE));
}
else
this->OnSyntaxError(source, "ADD");
@@ -245,7 +245,7 @@ class CommandOSAKill : public Command
}
if (readonly)
source.Reply(LanguageString::READ_ONLY_MODE);
source.Reply(_(READ_ONLY_MODE));
return MOD_CONT;
}
@@ -289,7 +289,7 @@ class CommandOSAKill : public Command
if (!SentHeader)
source.Reply(_("No matching entries on the AKILL list."));
else
source.Reply(LanguageString::END_OF_ANY_LIST, "Akill");
source.Reply(_(END_OF_ANY_LIST), "Akill");
}
return MOD_CONT;