summaryrefslogtreecommitdiff
path: root/modules/commands/cs_mode.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_mode.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_mode.cpp')
-rw-r--r--modules/commands/cs_mode.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp
index c40678a5f..1d3050f32 100644
--- a/modules/commands/cs_mode.cpp
+++ b/modules/commands/cs_mode.cpp
@@ -423,7 +423,7 @@ class CommandCSMode : public Command
else
{
ListFormatter list(source.GetAccount());
- list.AddColumn("Mode").AddColumn("Param").AddColumn("Creator").AddColumn("Created");
+ list.AddColumn(_("Mode")).AddColumn(_("Param")).AddColumn(_("Creator")).AddColumn(_("Created"));
for (ModeLocks::ModeList::const_iterator it = mlocks.begin(), it_end = mlocks.end(); it != it_end; ++it)
{
@@ -701,8 +701,8 @@ class CommandCSMode : public Command
"on a channel.\n"
" \n"
"The \002%s LOCK\002 command allows you to add, delete, and view mode locks on a channel.\n"
- "If a mode is locked on or off, services will not allow that mode to be changed. The \2SET\2\n"
- "command will clear all existing mode locks and set the new one given, while \2ADD\2 and \2DEL\2\n"
+ "If a mode is locked on or off, services will not allow that mode to be changed. The \002SET\002\n"
+ "command will clear all existing mode locks and set the new one given, while \002ADD\002 and \002DEL\002\n"
"modify the existing mode lock.\n"
"Example:\n"
" \002MODE #channel LOCK ADD +bmnt *!*@*aol*\002\n"
@@ -812,9 +812,9 @@ class CommandCSModes : public Command
if (!m.second.empty())
{
if (m.first)
- return Anope::printf(_("Gives you or the specified nick %s status on a channel"), m.second.c_str());
+ return Anope::printf(Language::Translate(source.GetAccount(), _("Gives you or the specified nick %s status on a channel")), m.second.c_str());
else
- return Anope::printf(_("Removes %s status from you or the specified nick on a channel"), m.second.c_str());
+ return Anope::printf(Language::Translate(source.GetAccount(), _("Removes %s status from you or the specified nick on a channel")), m.second.c_str());
}
else
return "";