1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 05:16:38 +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
@@ -33,12 +33,12 @@ class CommandHSSetAll : public Command
NickAlias *na = findnick(nick);
if (!na)
{
source.Reply(LanguageString::NICK_X_NOT_REGISTERED, nick.c_str());
source.Reply(_(NICK_X_NOT_REGISTERED), nick.c_str());
return MOD_CONT;
}
else if (na->HasFlag(NS_FORBIDDEN))
{
source.Reply(LanguageString::NICK_X_FORBIDDEN, nick.c_str());
source.Reply(_(NICK_X_FORBIDDEN), nick.c_str());
return MOD_CONT;
}
@@ -53,7 +53,7 @@ class CommandHSSetAll : public Command
}
if (vIdent.length() > Config->UserLen)
{
source.Reply(LanguageString::HOST_SET_IDENTTOOLONG, Config->UserLen);
source.Reply(_(HOST_SET_IDENTTOOLONG), Config->UserLen);
return MOD_CONT;
}
else
@@ -61,13 +61,13 @@ class CommandHSSetAll : public Command
for (Anope::string::iterator s = vIdent.begin(), s_end = vIdent.end(); s != s_end; ++s)
if (!isvalidchar(*s))
{
source.Reply(LanguageString::HOST_SET_IDENT_ERROR);
source.Reply(_(HOST_SET_IDENT_ERROR));
return MOD_CONT;
}
}
if (!ircd->vident)
{
source.Reply(LanguageString::HOST_NO_VIDENT);
source.Reply(_(HOST_NO_VIDENT));
return MOD_CONT;
}
}
@@ -77,13 +77,13 @@ class CommandHSSetAll : public Command
hostmask = rawhostmask;
else
{
source.Reply(LanguageString::HOST_SET_TOOLONG, Config->HostLen);
source.Reply(_(HOST_SET_TOOLONG), Config->HostLen);
return MOD_CONT;
}
if (!isValidHost(hostmask, 3))
{
source.Reply(LanguageString::HOST_SET_ERROR);
source.Reply(_(HOST_SET_ERROR));
return MOD_CONT;
}