From 7ba98ea2418006ac8ad32a9fd1272337233539b0 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Thu, 6 Aug 2015 05:39:33 +0200 Subject: [PATCH] CmdLog: Display the UUID of the logged task --- src/commands/CmdLog.cpp | 4 ++-- src/l10n/eng-USA.h | 2 +- src/l10n/jpn-JPN.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/CmdLog.cpp b/src/commands/CmdLog.cpp index 6c9b4f95a..bea4d4cb6 100644 --- a/src/commands/CmdLog.cpp +++ b/src/commands/CmdLog.cpp @@ -71,8 +71,8 @@ int CmdLog::execute (std::string& output) if (context.verbose ("project")) context.footnote (onProjectChange (task)); - if (context.verbose ("affected")) - output = std::string (STRING_CMD_LOG_LOGGED) + "\n"; + if (context.verbose ("new-uuid")) + output = format (STRING_CMD_LOG_LOGGED, task.get ("uuid")) + "\n"; return 0; } diff --git a/src/l10n/eng-USA.h b/src/l10n/eng-USA.h index 0e1789881..ec4b7e4e6 100644 --- a/src/l10n/eng-USA.h +++ b/src/l10n/eng-USA.h @@ -270,7 +270,7 @@ #define STRING_CMD_LOG_USAGE "Adds a new task that is already completed" #define STRING_CMD_LOG_NO_RECUR "You cannot log recurring tasks." #define STRING_CMD_LOG_NO_WAITING "You cannot log waiting tasks." -#define STRING_CMD_LOG_LOGGED "Logged task." +#define STRING_CMD_LOG_LOGGED "Logged task {1}." #define STRING_CMD_IDS_USAGE_RANGE "Shows the IDs of matching tasks, as a range" #define STRING_CMD_IDS_USAGE_LIST "Shows 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" diff --git a/src/l10n/jpn-JPN.h b/src/l10n/jpn-JPN.h index 2cf18f176..edca29785 100644 --- a/src/l10n/jpn-JPN.h +++ b/src/l10n/jpn-JPN.h @@ -270,7 +270,7 @@ #define STRING_CMD_LOG_USAGE "Adds a new task that is already completed" #define STRING_CMD_LOG_NO_RECUR "You cannot log recurring tasks." #define STRING_CMD_LOG_NO_WAITING "保留のタスクはログできません。" -#define STRING_CMD_LOG_LOGGED "Logged task." +#define STRING_CMD_LOG_LOGGED "Logged task {1}." #define STRING_CMD_IDS_USAGE_RANGE "Shows the IDs of matching tasks, as a range" #define STRING_CMD_IDS_USAGE_LIST "Shows 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"