summaryrefslogtreecommitdiff
path: root/modules/commands/os_sxline.cpp
diff options
context:
space:
mode:
authorRobby- <robby@chat.be>2013-09-22 23:27:14 +0200
committerAdam <Adam@anope.org>2013-09-27 19:11:02 -0400
commitbf67b9ee5caee3224a44f3999a3f7f78fbce0a25 (patch)
treea8860f1eff4a110b6837a6068b0d684cec09ff53 /modules/commands/os_sxline.cpp
parent829c169063577eefb50f2b6961f91f8bf29ae29d (diff)
Make column titles in listings translatable.
Make some more strings translatable, and remove some that don't need translation at all. Make expirytimes and units translatable. Make predefined messages in listings also translatable. Make the remaining command descriptions translatable. Make some ns/cs info strings equal to dedupe in translation file. Add missing no-autoop setting to cs info output. Make some strings translatable.
Diffstat (limited to 'modules/commands/os_sxline.cpp')
-rw-r--r--modules/commands/os_sxline.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/commands/os_sxline.cpp b/modules/commands/os_sxline.cpp
index b7e3cfcc3..82f0b2435 100644
--- a/modules/commands/os_sxline.cpp
+++ b/modules/commands/os_sxline.cpp
@@ -184,7 +184,7 @@ class CommandOSSXLineBase : public Command
void OnList(CommandSource &source, const std::vector<Anope::string> &params)
{
ListFormatter list(source.GetAccount());
- list.AddColumn("Number").AddColumn("Mask").AddColumn("Reason");
+ list.AddColumn(_("Number")).AddColumn(_("Mask")).AddColumn(_("Reason"));
this->ProcessList(source, params, list);
}
@@ -192,7 +192,7 @@ class CommandOSSXLineBase : public Command
void OnView(CommandSource &source, const std::vector<Anope::string> &params)
{
ListFormatter list(source.GetAccount());
- list.AddColumn("Number").AddColumn("Mask").AddColumn("By").AddColumn("Created").AddColumn("Expires").AddColumn("Reason");
+ list.AddColumn(_("Number")).AddColumn(_("Mask")).AddColumn(_("By")).AddColumn(_("Created")).AddColumn(_("Expires")).AddColumn(_("Reason"));
this->ProcessList(source, params, list);
}
@@ -213,7 +213,11 @@ class CommandOSSXLineBase : public Command
public:
CommandOSSXLineBase(Module *creator, const Anope::string &cmd) : Command(creator, cmd, 1, 4)
{
- this->SetDesc(Anope::printf(_("Manipulate the %s list"), cmd.c_str()));
+ }
+
+ const Anope::string GetDesc(CommandSource &source) const anope_override
+ {
+ return Anope::printf(Language::Translate(source.GetAccount(), _("Manipulate the %s list")), source.command.upper().c_str());
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
@@ -408,7 +412,7 @@ class CommandOSSNLine : public CommandOSSXLineBase
this->SetSyntax(_("DEL {\037mask\037 | \037entry-num\037 | \037list\037 | \037id\037}"));
this->SetSyntax(_("LIST [\037mask\037 | \037list\037 | \037id\037]"));
this->SetSyntax(_("VIEW [\037mask\037 | \037list\037 | \037id\037]"));
- this->SetSyntax(_("CLEAR"));
+ this->SetSyntax("CLEAR");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
@@ -641,7 +645,7 @@ class CommandOSSQLine : public CommandOSSXLineBase
this->SetSyntax(_("DEL {\037mask\037 | \037entry-num\037 | \037list\037 | \037id\037}"));
this->SetSyntax(_("LIST [\037mask\037 | \037list\037 | \037id\037]"));
this->SetSyntax(_("VIEW [\037mask\037 | \037list\037 | \037id\037]"));
- this->SetSyntax(_("CLEAR"));
+ this->SetSyntax("CLEAR");
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override