1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 15:03:13 +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
+7 -7
View File
@@ -89,7 +89,7 @@ class SQLineListCallback : 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());
}
};
@@ -122,7 +122,7 @@ class SQLineViewCallback : public SQLineListCallback
static void DoList(CommandSource &source, XLine *x, unsigned Number)
{
Anope::string expirebuf = expire_left(source.u->Account(), x->Expires);
source.Reply(LanguageString::OPER_VIEW_FORMAT, Number + 1, x->Mask.c_str(), x->By.c_str(), do_strftime(x->Created).c_str(), expirebuf.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(), expirebuf.c_str(), x->Reason.c_str());
}
};
@@ -153,7 +153,7 @@ class CommandOSSQLine : 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)
@@ -178,7 +178,7 @@ class CommandOSSQLine : 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 SQLine " << percent << "% of the network (" << affected << " users)";
return MOD_CONT;
}
@@ -191,7 +191,7 @@ class CommandOSSQLine : 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
@@ -240,7 +240,7 @@ class CommandOSSQLine : public Command
}
if (readonly)
source.Reply(LanguageString::READ_ONLY_MODE);
source.Reply(_(READ_ONLY_MODE));
return MOD_CONT;
}
@@ -283,7 +283,7 @@ class CommandOSSQLine : public Command
if (!SentHeader)
source.Reply(_("No matching entries on the SQLINE list."));
else
source.Reply(LanguageString::END_OF_ANY_LIST, "SQLine");
source.Reply(_(END_OF_ANY_LIST), "SQLine");
}
return MOD_CONT;