summaryrefslogtreecommitdiff
path: root/modules/commands/cs_xop.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/cs_xop.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/cs_xop.cpp')
-rw-r--r--modules/commands/cs_xop.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp
index 0b404ea6a..67ce6898d 100644
--- a/modules/commands/cs_xop.cpp
+++ b/modules/commands/cs_xop.cpp
@@ -379,7 +379,7 @@ class CommandCSXOP : public Command
}
ListFormatter list(source.GetAccount());
- list.AddColumn("Number").AddColumn("Mask");
+ list.AddColumn(_("Number")).AddColumn(_("Mask"));
if (!nick.empty() && nick.find_first_not_of("1234567890,-") == Anope::string::npos)
{
@@ -483,15 +483,15 @@ class CommandCSXOP : public Command
public:
CommandCSXOP(Module *modname) : Command(modname, "chanserv/xop", 2, 4)
{
- this->SetSyntax("\037channel\037 ADD \037mask\037");
- this->SetSyntax("\037channel\037 DEL {\037mask\037 | \037entry-num\037 | \037list\037}");
- this->SetSyntax("\037channel\037 LIST [\037mask\037 | \037list\037]");
- this->SetSyntax("\037channel\037 CLEAR");
+ this->SetSyntax(_("\037channel\037 ADD \037mask\037"));
+ this->SetSyntax(_("\037channel\037 DEL {\037mask\037 | \037entry-num\037 | \037list\037}"));
+ this->SetSyntax(_("\037channel\037 LIST [\037mask\037 | \037list\037]"));
+ this->SetSyntax(_("\037channel\037 CLEAR"));
}
const Anope::string GetDesc(CommandSource &source) const anope_override
{
- return Anope::printf(_("Modify the list of %s users"), source.command.upper().c_str());
+ return Anope::printf(Language::Translate(source.GetAccount(), _("Modify the list of %s users")), source.command.upper().c_str());
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -524,7 +524,7 @@ class CommandCSXOP : public Command
this->SendSyntax(source);
source.Reply(" ");
- source.Reply(_("Maintains the \2%s list\2 for a channel. Users who match an access entry\n"
+ source.Reply(_("Maintains the \002%s list\002 for a channel. Users who match an access entry\n"
"on the %s list receive the following privileges:\n"
" "), cmd.c_str(), cmd.c_str());