- 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

@ -151,6 +151,8 @@
- TW-1403 fish shell: no option "modify" after task selection (thanks to Roman
Infliansksas).
- TW-1405 Add command _zshattributes (thanks to Roman Inflianskas).
- TW-1409 Allow "1 of N tasks remaining" to be correctly localized (thanks to
Jeremy John Reeder).
- Removed deprecated 'echo.command' setting, in favor of the 'header' and
'affected' verbosity tokens.
- Removed deprecated 'edit.verbose' setting, in favor of the 'edit' verbosity

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

View file

@ -791,6 +791,7 @@
#define STRING_HELPER_PROJECT_CHANGE "The project '{1}' has changed."
#define STRING_HELPER_PROJECT_COMPL "Project '{1}' is {2}% complete"
#define STRING_HELPER_PROJECT_REM "({1} of {2} tasks remaining)."
#define STRING_HELPER_PROJECT_REM1 "({1} task remaining)."
// JSON
#define STRING_JSON_MISSING_VALUE "Error: missing value after ',' at position {1}"

View file

@ -791,6 +791,7 @@
#define STRING_HELPER_PROJECT_CHANGE "Projekto '{1}' ŝanĝis."
#define STRING_HELPER_PROJECT_COMPL "Projekto '{1}' estas {2}% kompleta"
#define STRING_HELPER_PROJECT_REM "(Restas {1} de {2} taskoj)."
#define STRING_HELPER_PROJECT_REM1 "({1} task remaining)."
// JSON
#define STRING_JSON_MISSING_VALUE "Eraro: mankas valoro post ',' ĉe pozicio {1}"

View file

@ -803,6 +803,7 @@
#define STRING_HELPER_PROJECT_CHANGE "El proyecto '{1}' ha cambiado."
#define STRING_HELPER_PROJECT_COMPL "El proyecto '{1}' se ha completado en un {2}%"
#define STRING_HELPER_PROJECT_REM "(quedan {1} de {2} tareas)."
#define STRING_HELPER_PROJECT_REM1 "({1} task remaining)."
// JSON
#define STRING_JSON_MISSING_VALUE "Error: falta valor después de ',' en posición {1}"

View file

@ -790,6 +790,7 @@
#define STRING_HELPER_PROJECT_CHANGE "The project '{1}' has changed."
#define STRING_HELPER_PROJECT_COMPL "Project '{1}' is {2}% complete"
#define STRING_HELPER_PROJECT_REM "({1} of {2} tasks remaining)."
#define STRING_HELPER_PROJECT_REM1 "({1} task remaining)."
// JSON
#define STRING_JSON_MISSING_VALUE "Erreur : valeur manquante après ',' à la position {1}"

View file

@ -791,6 +791,7 @@
#define STRING_HELPER_PROJECT_CHANGE "Il progetto '{1}' è stato modificat."
#define STRING_HELPER_PROJECT_COMPL "Il progetto '{1}' è {2}% completo"
#define STRING_HELPER_PROJECT_REM "({1} di {2} task rimanenti)."
#define STRING_HELPER_PROJECT_REM1 "({1} task remaining)."
// JSON
#define STRING_JSON_MISSING_VALUE "Errore: mancato valore dopo ',' alla posizione {1}"

View file

@ -791,6 +791,7 @@
#define STRING_HELPER_PROJECT_CHANGE "O projeto '{1}' foi alterado."
#define STRING_HELPER_PROJECT_COMPL "Projeto '{1}' está {2}% concluído"
#define STRING_HELPER_PROJECT_REM "(Restam {1} de {2} tarefas)."
#define STRING_HELPER_PROJECT_REM1 "({1} task remaining)."
// JSON
#define STRING_JSON_MISSING_VALUE "Erro: valor em falta após ',' na posição {1}"