- Localized 'ids', '_ids' and '_zshids' commands.
This commit is contained in:
Paul Beckingham 2011-06-25 12:01:12 -04:00
parent 5972272de2
commit 6d4bf3dc75
2 changed files with 9 additions and 3 deletions

View file

@ -25,11 +25,14 @@
//
////////////////////////////////////////////////////////////////////////////////
#define L10N // Localization complete.
#include <sstream>
#include <algorithm>
#include <Context.h>
#include <main.h>
#include <util.h>
#include <i18n.h>
#include <CmdIDs.h>
extern Context context;
@ -39,7 +42,7 @@ CmdIDs::CmdIDs ()
{
_keyword = "ids";
_usage = "task ids [<filter>]";
_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 [<filter>]";
_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 [<filter>]";
_description = "Shows the IDs and descriptions of matching tasks.";
_description = STRING_CMD_IDS_USAGE_ZSH;
_read_only = true;
_displays_id = true;
}

View file

@ -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."