mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 09:40:37 +02:00
l10n: Eliminated STRING_CMD_CUSTOM_*
This commit is contained in:
parent
ba11e9608f
commit
1acdf1cafc
10 changed files with 5 additions and 50 deletions
|
@ -79,7 +79,7 @@ int CmdCustom::execute (std::string& output)
|
|||
auto labels = split (reportLabels, ',');
|
||||
|
||||
if (columns.size () != labels.size () && labels.size () != 0)
|
||||
throw format (STRING_CMD_CUSTOM_MISMATCH, _keyword);
|
||||
throw format ("There are different numbers of columns and labels for report '{1}'.", _keyword);
|
||||
|
||||
auto sortOrder = split (reportSort, ',');
|
||||
if (sortOrder.size () != 0 &&
|
||||
|
@ -215,15 +215,15 @@ int CmdCustom::execute (std::string& output)
|
|||
if (context.verbose ("affected"))
|
||||
{
|
||||
out << (filtered.size () == 1
|
||||
? STRING_CMD_CUSTOM_COUNT
|
||||
: format (STRING_CMD_CUSTOM_COUNTN, filtered.size ()));
|
||||
? "1 task"
|
||||
: format ("{1} tasks", filtered.size ()));
|
||||
|
||||
if (maxrows && maxrows < (int)filtered.size ())
|
||||
out << ", " << format (STRING_CMD_CUSTOM_SHOWN, maxrows);
|
||||
out << ", " << format ("{1} shown", maxrows);
|
||||
|
||||
if (maxlines && maxlines < (int)filtered.size ())
|
||||
out << ", "
|
||||
<< format (STRING_CMD_CUSTOM_TRUNCATED, maxlines - table_header);
|
||||
<< format ("truncated to {1} lines", maxlines - table_header);
|
||||
|
||||
out << '\n';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue