Make it possible to translate arguments in help text of module commands

Ref #1354
This commit is contained in:
Alexey Sokolov
2016-12-25 21:10:40 +00:00
parent b5fde609c4
commit d9c1da8a68
6 changed files with 51 additions and 29 deletions

View File

@@ -28,7 +28,7 @@ class CAdminLogMod : public CModule {
AddHelpCommand();
AddCommand("Show", "", t_d("Show the logging target"),
[=](const CString& sLine) { OnShowCommand(sLine); });
AddCommand("Target", "<file|syslog|both> [path]",
AddCommand("Target", t_d("<file|syslog|both> [path]"),
t_d("Set the logging target"),
[=](const CString& sLine) { OnTargetCommand(sLine); });
openlog("znc", LOG_PID, LOG_DAEMON);