mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
I18N
- Localized more commands.
This commit is contained in:
parent
ba723db9d7
commit
e5139780ea
8 changed files with 85 additions and 80 deletions
|
@ -25,6 +25,8 @@
|
|||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define L10N // Localization complete.
|
||||
|
||||
#include <sstream>
|
||||
#include <Context.h>
|
||||
#include <text.h>
|
||||
|
@ -40,7 +42,7 @@ CmdDuplicate::CmdDuplicate ()
|
|||
{
|
||||
_keyword = "duplicate";
|
||||
_usage = "task <filter> duplicate [<modifications>]";
|
||||
_description = "Duplicates the specified tasks, and allows modifications.";
|
||||
_description = STRING_CMD_DUPLICATE_USAGE;
|
||||
_read_only = false;
|
||||
_displays_id = false;
|
||||
}
|
||||
|
@ -88,9 +90,8 @@ int CmdDuplicate::execute (std::string& output)
|
|||
dup.remove ("imak");
|
||||
dup.remove ("imask");
|
||||
|
||||
out << "Note: task "
|
||||
<< task->id
|
||||
<< " was a recurring task. The duplicate task is not.\n";
|
||||
out << format (STRING_CMD_DUPLICATE_NON_REC, task->id)
|
||||
<< "\n";
|
||||
}
|
||||
|
||||
modify_task_annotate (dup, modifications);
|
||||
|
@ -103,11 +104,10 @@ int CmdDuplicate::execute (std::string& output)
|
|||
++count;
|
||||
|
||||
if (context.config.getBoolean ("echo.command"))
|
||||
out << "Duplicated "
|
||||
<< task->id
|
||||
<< " '"
|
||||
<< task->get ("description")
|
||||
<< "'.\n";
|
||||
out << format (STRING_CMD_DUPLICATE_DONE,
|
||||
task->id,
|
||||
task->get ("description"))
|
||||
<< "\n";
|
||||
|
||||
// TODO This should be a call in to feedback.cpp.
|
||||
if (context.verbose ("new-id"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue