mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
I18N
- Localized 'ids', '_ids' and '_zshids' commands.
This commit is contained in:
parent
5972272de2
commit
6d4bf3dc75
2 changed files with 9 additions and 3 deletions
|
@ -25,11 +25,14 @@
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#define L10N // Localization complete.
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <main.h>
|
#include <main.h>
|
||||||
#include <util.h>
|
#include <util.h>
|
||||||
|
#include <i18n.h>
|
||||||
#include <CmdIDs.h>
|
#include <CmdIDs.h>
|
||||||
|
|
||||||
extern Context context;
|
extern Context context;
|
||||||
|
@ -39,7 +42,7 @@ CmdIDs::CmdIDs ()
|
||||||
{
|
{
|
||||||
_keyword = "ids";
|
_keyword = "ids";
|
||||||
_usage = "task ids [<filter>]";
|
_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;
|
_read_only = true;
|
||||||
_displays_id = true;
|
_displays_id = true;
|
||||||
}
|
}
|
||||||
|
@ -76,7 +79,7 @@ CmdCompletionIds::CmdCompletionIds ()
|
||||||
{
|
{
|
||||||
_keyword = "_ids";
|
_keyword = "_ids";
|
||||||
_usage = "task _ids [<filter>]";
|
_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;
|
_read_only = true;
|
||||||
_displays_id = true;
|
_displays_id = true;
|
||||||
}
|
}
|
||||||
|
@ -117,7 +120,7 @@ CmdZshCompletionIds::CmdZshCompletionIds ()
|
||||||
{
|
{
|
||||||
_keyword = "_zshids";
|
_keyword = "_zshids";
|
||||||
_usage = "task _zshids [<filter>]";
|
_usage = "task _zshids [<filter>]";
|
||||||
_description = "Shows the IDs and descriptions of matching tasks.";
|
_description = STRING_CMD_IDS_USAGE_ZSH;
|
||||||
_read_only = true;
|
_read_only = true;
|
||||||
_displays_id = true;
|
_displays_id = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -162,6 +162,9 @@
|
||||||
#define STRING_CMD_ADD_FEEDBACK "Created task {1}."
|
#define STRING_CMD_ADD_FEEDBACK "Created task {1}."
|
||||||
#define STRING_CMD_MOD_UNEXPECTED "Unexpected argument '{1}' found while modifying a task."
|
#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_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
|
// Config
|
||||||
#define STRING_CONFIG_OVERNEST "Configuration file nested to more than 10 levels deep - this has to be a mistake."
|
#define STRING_CONFIG_OVERNEST "Configuration file nested to more than 10 levels deep - this has to be a mistake."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue