mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
I18N
- Completed localizing CmdLog.cpp.
This commit is contained in:
parent
f483d1ed9d
commit
3abb4d7dd6
2 changed files with 6 additions and 3 deletions
|
@ -68,10 +68,10 @@ int CmdLog::execute (std::string& output)
|
|||
|
||||
// Recurring tasks get a special status.
|
||||
if (task.has ("recur"))
|
||||
throw std::string ("You cannot log recurring tasks.");
|
||||
throw std::string (STRING_CMD_LOG_NO_RECUR);
|
||||
|
||||
if (task.has ("wait"))
|
||||
throw std::string ("You cannot log waiting tasks.");
|
||||
throw std::string (STRING_CMD_LOG_NO_WAITING);
|
||||
|
||||
// Override with log-specific changes.
|
||||
task.setStatus (Task::completed);
|
||||
|
@ -91,7 +91,7 @@ int CmdLog::execute (std::string& output)
|
|||
context.tdb.unlock ();
|
||||
|
||||
if (context.config.getBoolean ("echo.command"))
|
||||
output = "Logged task.\n";
|
||||
output = std::string (STRING_CMD_LOG_LOGGED) + "\n";
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue