l10n: Eliminated STRING_CMD_INFO_*

This commit is contained in:
Paul Beckingham 2018-01-21 12:21:42 -05:00
parent c8c2be1652
commit 2d859aa048
10 changed files with 7 additions and 70 deletions

View file

@ -46,7 +46,7 @@ CmdInfo::CmdInfo ()
{
_keyword = "information";
_usage = "task <filter> information";
_description = STRING_CMD_INFO_USAGE;
_description = "Shows all data and metadata";
_read_only = true;
// This is inaccurate, but it does prevent a GC. While this doesn't make a
@ -158,7 +158,7 @@ int CmdInfo::execute (std::string& output)
message << block.id << ' ' << block.get ("description") << '\n';
row = view.addRow ();
view.set (row, 0, STRING_CMD_INFO_BLOCKED);
view.set (row, 0, "This task blocked by");
view.set (row, 1, message.str ());
}
}
@ -173,7 +173,7 @@ int CmdInfo::execute (std::string& output)
message << block.id << ' ' << block.get ("description") << '\n';
row = view.addRow ();
view.set (row, 0, STRING_CMD_INFO_BLOCKING);
view.set (row, 0, "This task is blocking");
view.set (row, 1, message.str ());
}
}
@ -297,7 +297,7 @@ int CmdInfo::execute (std::string& output)
if (task.has ("until"))
{
row = view.addRow ();
view.set (row, 0, STRING_CMD_INFO_UNTIL);
view.set (row, 0, "Until");
view.set (row, 1, Datetime (task.get_date ("until")).toString (dateformat));
}
@ -305,7 +305,7 @@ int CmdInfo::execute (std::string& output)
if (task.has ("modified"))
{
row = view.addRow ();
view.set (row, 0, STRING_CMD_INFO_MODIFIED);
view.set (row, 0, "Last modified");
Datetime mod (task.get_date ("modified"));
std::string age = Duration (now - mod).formatVague ();
@ -362,7 +362,7 @@ int CmdInfo::execute (std::string& output)
// If you update the above list, update src/commands/CmdInfo.cpp and src/commands/CmdTags.cpp as well.
row = view.addRow ();
view.set (row, 0, STRING_CMD_INFO_VIRTUAL_TAGS);
view.set (row, 0, "Virtual tags");
view.set (row, 1, virtualTags);
}
@ -537,7 +537,7 @@ int CmdInfo::execute (std::string& output)
journal.width (context.getWidth ());
journal.add (STRING_COLUMN_LABEL_DATE);
journal.add (STRING_CMD_INFO_MODIFICATION);
journal.add ("Modification");
if (context.config.getBoolean ("journal.info") &&
undo.size () > 3)