1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 11:06: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
+3 -3
View File
@@ -44,7 +44,7 @@ class CommandCSSuspend : public Command
}
if (readonly)
source.Reply(LanguageString::READ_ONLY_MODE);
source.Reply(_(READ_ONLY_MODE));
ci->SetFlag(CI_SUSPENDED);
ci->forbidby = u->nick;
@@ -60,7 +60,7 @@ class CommandCSSuspend : public Command
if (uc->user->HasMode(UMODE_OPER))
continue;
c->Kick(NULL, uc->user, "%s", !reason.empty() ? reason.c_str() : GetString(uc->user->Account(), _("This channel has been suspended.")).c_str());
c->Kick(NULL, uc->user, "%s", !reason.empty() ? reason.c_str() : GetString(uc->user->Account(), "This channel has been suspended.").c_str());
}
}
@@ -105,7 +105,7 @@ class CommandCSUnSuspend : public Command
ChannelInfo *ci = source.ci;
if (readonly)
source.Reply(LanguageString::READ_ONLY_MODE);
source.Reply(_(READ_ONLY_MODE));
/* Only UNSUSPEND already suspended channels */
if (!ci->HasFlag(CI_SUSPENDED))