diff --git a/src/commands/CmdIDs.cpp b/src/commands/CmdIDs.cpp index 9009185eb..6d93fdf85 100644 --- a/src/commands/CmdIDs.cpp +++ b/src/commands/CmdIDs.cpp @@ -25,11 +25,14 @@ // //////////////////////////////////////////////////////////////////////////////// +#define L10N // Localization complete. + #include #include #include #include #include +#include #include extern Context context; @@ -39,7 +42,7 @@ CmdIDs::CmdIDs () { _keyword = "ids"; _usage = "task ids []"; - _description = "Shows only the IDs of matching tasks, in the form of a range."; + _description = STRING_CMD_IDS_USAGE_RANGE; _read_only = true; _displays_id = true; } @@ -76,7 +79,7 @@ CmdCompletionIds::CmdCompletionIds () { _keyword = "_ids"; _usage = "task _ids []"; - _description = "Shows only the IDs of matching tasks, in the form of a list."; + _description = STRING_CMD_IDS_USAGE_LIST; _read_only = true; _displays_id = true; } @@ -117,7 +120,7 @@ CmdZshCompletionIds::CmdZshCompletionIds () { _keyword = "_zshids"; _usage = "task _zshids []"; - _description = "Shows the IDs and descriptions of matching tasks."; + _description = STRING_CMD_IDS_USAGE_ZSH; _read_only = true; _displays_id = true; } diff --git a/src/en-US.h b/src/en-US.h index 9e5aaf615..eaf0f9c62 100644 --- a/src/en-US.h +++ b/src/en-US.h @@ -162,6 +162,9 @@ #define STRING_CMD_ADD_FEEDBACK "Created task {1}." #define STRING_CMD_MOD_UNEXPECTED "Unexpected argument '{1}' found while modifying a task." #define STRING_CMD_LOG_USAGE "Adds a new task that is already completed." +#define STRING_CMD_IDS_USAGE_RANGE "Shows only the IDs of matching tasks, in the form of a range." +#define STRING_CMD_IDS_USAGE_LIST "Shows only the IDs of matching tasks, in the form of a list." +#define STRING_CMD_IDS_USAGE_ZSH "Shows the IDs and descriptions of matching tasks." // Config #define STRING_CONFIG_OVERNEST "Configuration file nested to more than 10 levels deep - this has to be a mistake."