mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tw-1409
- TW-1409 Allow "1 of N tasks remaining" to be correctly localized (thanks to Jeremy John Reeder).
This commit is contained in:
parent
f2c9be6c59
commit
11c013d88c
8 changed files with 14 additions and 2 deletions
|
@ -473,8 +473,12 @@ std::string onProjectChange (Task& task, bool scope /* = true */)
|
|||
percentage = (count_done * 100 / (count_done + count_pending));
|
||||
|
||||
msg << format (STRING_HELPER_PROJECT_COMPL, project, percentage)
|
||||
<< " "
|
||||
<< format (STRING_HELPER_PROJECT_REM, count_pending, count_pending + count_done);
|
||||
<< " ";
|
||||
|
||||
if (count_pending > 1)
|
||||
msg << format (STRING_HELPER_PROJECT_REM, count_pending, count_pending + count_done);
|
||||
else
|
||||
msg << format (STRING_HELPER_PROJECT_REM1, count_pending);
|
||||
}
|
||||
|
||||
return msg.str ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue