- TW-1409 Allow "1 of N tasks remaining" to be correctly localized (thanks to
          Jeremy John Reeder).
This commit is contained in:
Paul Beckingham 2014-09-05 16:51:00 -04:00
parent f2c9be6c59
commit 11c013d88c
8 changed files with 14 additions and 2 deletions

View file

@ -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 ();