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
+7 -7
View File
@@ -335,26 +335,26 @@ class CAliasMod : public CModule {
MODCONSTRUCTOR(CAliasMod), sending_lines(false) {
AddHelpCommand();
AddCommand("Create", "<name>",
AddCommand("Create", t_d("<name>"),
t_d("Creates a new, blank alias called name."),
[=](const CString& sLine) { CreateCommand(sLine); });
AddCommand("Delete", "<name>", t_d("Deletes an existing alias."),
AddCommand("Delete", t_d("<name>"), t_d("Deletes an existing alias."),
[=](const CString& sLine) { DeleteCommand(sLine); });
AddCommand("Add", "<name> <action ...>",
AddCommand("Add", t_d("<name> <action ...>"),
t_d("Adds a line to an existing alias."),
[=](const CString& sLine) { AddCmd(sLine); });
AddCommand("Insert", "<name> <pos> <action ...>",
AddCommand("Insert", t_d("<name> <pos> <action ...>"),
t_d("Inserts a line into an existing alias."),
[=](const CString& sLine) { InsertCommand(sLine); });
AddCommand("Remove", "<name> <pos>",
AddCommand("Remove", t_d("<name> <pos>"),
t_d("Removes a line from an existing alias."),
[=](const CString& sLine) { RemoveCommand(sLine); });
AddCommand("Clear", "<name>",
AddCommand("Clear", t_d("<name>"),
t_d("Removes all lines from an existing alias."),
[=](const CString& sLine) { ClearCommand(sLine); });
AddCommand("List", "", t_d("Lists all aliases by name."),
[=](const CString& sLine) { ListCommand(sLine); });
AddCommand("Info", "<name>",
AddCommand("Info", t_d("<name>"),
t_d("Reports the actions performed by an alias."),
[=](const CString& sLine) { InfoCommand(sLine); });
AddCommand(