summaryrefslogtreecommitdiff
path: root/modules/commands/ns_set_language.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-16 16:38:42 -0400
committerAdam <Adam@anope.org>2011-08-16 16:38:42 -0400
commit0f4c9a43b3240709d3ddbbfd8450197bd8eb9096 (patch)
treefd36ba43f1a1d1e07a2590459f6786bd0694324a /modules/commands/ns_set_language.cpp
parent9aa414b1f63196d88731a5fc5adbc56be2c6fb39 (diff)
List supported languages in /ns help saset language
Diffstat (limited to 'modules/commands/ns_set_language.cpp')
-rw-r--r--modules/commands/ns_set_language.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/commands/ns_set_language.cpp b/modules/commands/ns_set_language.cpp
index 3429ad688..9af0753f1 100644
--- a/modules/commands/ns_set_language.cpp
+++ b/modules/commands/ns_set_language.cpp
@@ -95,9 +95,17 @@ class CommandNSSASetLanguage : public CommandNSSetLanguage
this->SendSyntax(source);
source.Reply(" ");
source.Reply(_("Changes the language Services uses when sending messages to\n"
- "you (for example, when responding to a command you send).\n"
+ "the given user (for example, when responding to a command they send).\n"
"\037language\037 should be chosen from the following list of\n"
"supported languages:"));
+ source.Reply(" en (English)");
+ for (unsigned j = 0; j < languages.size(); ++j)
+ {
+ const Anope::string &langname = anope_gettext(languages[j].c_str(), _("English"));
+ if (langname == "English")
+ continue;
+ source.Reply(" %s (%s)", languages[j].c_str(), langname.c_str());
+ }
return true;
}
};