1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 14:03:13 +02:00

List supported languages in /ns help saset language

This commit is contained in:
Adam
2011-08-16 16:38:42 -04:00
parent 9aa414b1f6
commit 0f4c9a43b3
+9 -1
View File
@@ -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;
}
};