diff options
author | Adam <Adam@anope.org> | 2011-06-17 19:57:43 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-06-17 19:57:43 -0400 |
commit | a1b36ec0a527e6d7a9d224b56bf9571619d5f92e (patch) | |
tree | 5e74290f46205ef1ad86700e1f04ec016b1f66fd /src/command.cpp | |
parent | 48e995ddf2cd30a05222a51e665c02b1e7ae567a (diff) |
Search all domains for language strings, fixes the mess that we used to use to translate strings in 3rd party modules
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/command.cpp b/src/command.cpp index 04295bbe6..cb39ba926 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -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; } |