summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-09-22 15:42:45 -0400
committerAdam <Adam@anope.org>2013-09-27 19:11:02 -0400
commit4948120b699ddbf455e44ede72ecb4547fae0afc (patch)
tree26acf8fda42ba1932262a0ac3672c87a2b31b04c /src/command.cpp
parent994471f5a7f258a197cce6dffba97f470ee8f831 (diff)
Translate SendSyntax() and spacify it properly
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/command.cpp b/src/command.cpp
index c3131bda2..05c6e5f32 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -144,14 +144,16 @@ void Command::SetSyntax(const Anope::string &s)
void Command::SendSyntax(CommandSource &source)
{
+ Anope::string s = Language::Translate(source.GetAccount(), _("Syntax"));
if (!this->syntax.empty())
{
- source.Reply(_("Syntax: \002%s %s\002"), source.command.c_str(), this->syntax[0].c_str());
+ source.Reply("%s: \002%s %s\002", s.c_str(), source.command.c_str(), Language::Translate(source.GetAccount(), this->syntax[0].c_str()));
+ Anope::string spaces(s.length(), ' ');
for (unsigned i = 1, j = this->syntax.size(); i < j; ++i)
- source.Reply(" \002%s %s\002", source.command.c_str(), this->syntax[i].c_str());
+ source.Reply("%s \002%s %s\002", spaces.c_str(), source.command.c_str(), Language::Translate(source.GetAccount(), this->syntax[i].c_str()));
}
else
- source.Reply(_("Syntax: \002%s\002"), source.command.c_str());
+ source.Reply("%s: \002%s\002", s.c_str(), source.command.c_str());
}
bool Command::AllowUnregistered() const