summaryrefslogtreecommitdiff
path: root/modules/commands/ns_list.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/ns_list.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/ns_list.cpp')
-rw-r--r--modules/commands/ns_list.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/ns_list.cpp b/modules/commands/ns_list.cpp
index 66ff914e9..fbc674eb6 100644
--- a/modules/commands/ns_list.cpp
+++ b/modules/commands/ns_list.cpp
@@ -72,7 +72,7 @@ class CommandNSList : public Command
mync = source.nc;
ListFormatter list(source.GetAccount());
- list.AddColumn("Nick").AddColumn("Last usermask");
+ list.AddColumn(_("Nick")).AddColumn(_("Last usermask"));
Anope::map<NickAlias *> ordered_map;
for (nickalias_map::const_iterator it = NickAliasList->begin(), it_end = NickAliasList->end(); it != it_end; ++it)
@@ -107,11 +107,11 @@ class CommandNSList : public Command
ListFormatter::ListEntry entry;
entry["Nick"] = (isnoexpire ? "!" : "") + na->nick;
if (na->nc->HasExt("HIDE_MASK") && !is_servadmin && na->nc != mync)
- entry["Last usermask"] = "[Hostname hidden]";
+ entry["Last usermask"] = Language::Translate(source.GetAccount(), _("[Hostname hidden]"));
else if (na->nc->HasExt("NS_SUSPENDED"))
- entry["Last usermask"] = "[Suspended]";
+ entry["Last usermask"] = Language::Translate(source.GetAccount(), _("[Suspended]"));
else if (na->nc->HasExt("UNCONFIRMED"))
- entry["Last usermask"] = "[Unconfirmed]";
+ entry["Last usermask"] = Language::Translate(source.GetAccount(), _("[Unconfirmed]"));
else
entry["Last usermask"] = na->last_usermask;
list.AddEntry(entry);