1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 04:46:38 +02:00

Search all domains for language strings, fixes the mess that we used to use to translate strings in 3rd party modules

This commit is contained in:
Adam
2011-06-17 19:57:43 -04:00
parent 48e995ddf2
commit a1b36ec0a5
63 changed files with 767 additions and 633 deletions
+5 -2
View File
@@ -29,7 +29,10 @@ void CommandSource::Reply(const Anope::string &message)
sepstream sep(message, '\n');
Anope::string tok;
while (sep.GetToken(tok))
this->reply.push_back(tok);
{
const char *translated_message = translate(this->u, tok.c_str());
this->reply.push_back(translated_message);
}
}
void CommandSource::DoReply()
@@ -76,7 +79,7 @@ const Anope::string &Command::GetDesc() const
void Command::OnServHelp(CommandSource &source)
{
source.Reply(" %-14s %s", this->name.c_str(), _(this->GetDesc().c_str()));
source.Reply(" %-14s %s", this->name.c_str(), translate(source.u, (this->GetDesc().c_str())));
}
bool Command::OnHelp(CommandSource &source, const Anope::string &subcommand) { return false; }