- Localized two remaining errors in Task.cpp that were missed.
This commit is contained in:
Paul Beckingham 2014-09-14 12:11:45 -04:00
parent b5f3cfd9a3
commit e93c61ae8d
7 changed files with 20 additions and 2 deletions

View file

@ -2102,7 +2102,7 @@ void Task::modify (modType type, bool text_required /* = false */)
++modCount;
}
else
throw format ("The duration value '{1}' is not supported.", value);
throw format (STRING_TASK_INVALID_DUR, value);
}
// Need handling for numeric types, used by UDAs.
@ -2173,7 +2173,7 @@ void Task::modify (modType type, bool text_required /* = false */)
}
else
throw format ("Unrecognized column type '{1}' for column '{2}'", column->type (), name);
throw format (STRING_TASK_INVALID_COL_TYPE, column->type (), name);
// Warn about deprecated/obsolete attribute usage.
legacyAttributeCheck (name);

View file

@ -820,6 +820,7 @@
// Task
#define STRING_TASK_NO_FF1 "Taskwarrior no longer supports file format 1, originally used between 27 November 2006 and 31 December 2007."
#define STRING_TASK_NO_FF2 "Taskwarrior no longer supports file format 2, originally used between 1 January 2008 and 12 April 2009."
#define STRING_TASK_NO_FF3 "Taskwarrior no longer supports file format 3, originally used between 23 March 2009 and 16 May 2009."
#define STRING_TASK_PARSE_ANNO_BRACK "Missing annotation brackets."
#define STRING_TASK_PARSE_ATT_BRACK "Missing attribute brackets."
#define STRING_TASK_PARSE_TAG_BRACK "Missing tag brackets."
@ -839,6 +840,8 @@
#define STRING_TASK_SAFETY_VALVE "This command has no filter, and will modify all tasks. Are you sure?"
#define STRING_TASK_SAFETY_FAIL "Command prevented from running."
#define STRING_TASK_SAFETY_ALLOW "You did not specify a filter, and with the 'allow.empty.filter' value, no action is taken."
#define STRING_TASK_INVALID_DUR "The duration value '{1}' is not supported."
#define STRING_TASK_INVALID_COL_TYPE "Unrecognized column type '{1}' for column '{2}'"
// TDB2
#define STRING_TDB2_PARSE_ERROR " in {1} at line {2}"

View file

@ -820,6 +820,7 @@
// Task
#define STRING_TASK_NO_FF1 "Taskwarrior ne pli subtenas dosier-aranĝon 1, kiu estis originale uzata inter la 27-a de novembro 2006 kaj la 31-a de decembro 2007."
#define STRING_TASK_NO_FF2 "Taskwarrior ne pli subtenas dosier-aranĝon 2, kiu estis originale uzata inter la 1-a de januaro 2008 kaj la 12-a de aprilo 2009."
#define STRING_TASK_NO_FF3 "Taskwarrior no longer supports file format 3, originally used between 23 March 2009 and 16 May 2009."
#define STRING_TASK_PARSE_ANNO_BRACK "Mankas komentaj krampoj."
#define STRING_TASK_PARSE_ATT_BRACK "Mankas atributaj krampoj."
#define STRING_TASK_PARSE_TAG_BRACK "Mankas etikedaj krampoj."
@ -839,6 +840,8 @@
#define STRING_TASK_SAFETY_VALVE "Tiu komando ne havas filtrilo, do ĝi modifos ĉian taskon. Ĉu vi estas certa?"
#define STRING_TASK_SAFETY_FAIL "Antaŭmalebligis komandon."
#define STRING_TASK_SAFETY_ALLOW "Vi ne specifis filtrilon. Laŭ la valoro 'allow.empty.filter', ne faros nenion."
#define STRING_TASK_INVALID_DUR "The duration value '{1}' is not supported."
#define STRING_TASK_INVALID_COL_TYPE "Unrecognized column type '{1}' for column '{2}'"
// TDB2
#define STRING_TDB2_PARSE_ERROR " en {1} ĉe vico {2}"

View file

@ -827,6 +827,7 @@
// Task
#define STRING_TASK_NO_FF1 "Taskwarrior ya no admite el formato de archivo 1, usado originalmente entre el 27 de noviembre del 2006 y el 31 de diciembre del 2007."
#define STRING_TASK_NO_FF2 "Taskwarrior ya no admite el formato de archivo 2, usado originalmente entre el 1 de enero del 2008 y el 12 de abril del 2009."
#define STRING_TASK_NO_FF3 "Taskwarrior no longer supports file format 3, originally used between 23 March 2009 and 16 May 2009."
#define STRING_TASK_PARSE_ANNO_BRACK "Faltan corchetes de anotación."
#define STRING_TASK_PARSE_ATT_BRACK "Faltan corchetes de atributo."
#define STRING_TASK_PARSE_TAG_BRACK "Faltan corchetes de marca."
@ -846,6 +847,8 @@
#define STRING_TASK_SAFETY_VALVE "Este comando no tiene filtro, y modificará todas las tareas. ¿Está seguro?"
#define STRING_TASK_SAFETY_FAIL "Se impidió la ejecución del comando."
#define STRING_TASK_SAFETY_ALLOW "No especificó un filtro, y, dado el valor de 'allow.empty.filter', no se ejecutó ninguna acción."
#define STRING_TASK_INVALID_DUR "The duration value '{1}' is not supported."
#define STRING_TASK_INVALID_COL_TYPE "Unrecognized column type '{1}' for column '{2}'"
// TDB2
#define STRING_TDB2_PARSE_ERROR " en {1} en la línea {2}"

View file

@ -819,6 +819,7 @@
// Task
#define STRING_TASK_NO_FF1 "Taskwarrior no longer supports file format 1, originally used between 27 November 2006 and 31 December 2007."
#define STRING_TASK_NO_FF2 "Taskwarrior no longer supports file format 2, originally used between 1 January 2008 and 12 April 2009."
#define STRING_TASK_NO_FF3 "Taskwarrior no longer supports file format 3, originally used between 23 March 2009 and 16 May 2009."
#define STRING_TASK_PARSE_ANNO_BRACK "Missing annotation brackets."
#define STRING_TASK_PARSE_ATT_BRACK "Missing attribute brackets."
#define STRING_TASK_PARSE_TAG_BRACK "Missing tag brackets."
@ -838,6 +839,8 @@
#define STRING_TASK_SAFETY_VALVE "This command has no filter, and will modify all tasks. Are you sure?"
#define STRING_TASK_SAFETY_FAIL "Command prevented from running."
#define STRING_TASK_SAFETY_ALLOW "You did not specify a filter, and with the 'allow.empty.filter' value, no action is taken."
#define STRING_TASK_INVALID_DUR "The duration value '{1}' is not supported."
#define STRING_TASK_INVALID_COL_TYPE "Unrecognized column type '{1}' for column '{2}'"
// TDB2
#define STRING_TDB2_PARSE_ERROR " in {1} at line {2}"

View file

@ -820,6 +820,7 @@
// Task
#define STRING_TASK_NO_FF1 "Taskwarrior non supporta più il formato di file 1, usato tra il 27 Novembre 2006 e il 31 Dicembre 2007."
#define STRING_TASK_NO_FF2 "Taskwarrior no longer supports file format 2, originally used between 1 January 2008 and 12 April 2009."
#define STRING_TASK_NO_FF3 "Taskwarrior no longer supports file format 3, originally used between 23 March 2009 and 16 May 2009."
#define STRING_TASK_PARSE_ANNO_BRACK "Parentesi di annotazione mancanti."
#define STRING_TASK_PARSE_ATT_BRACK "Parentesi di attributo mancanti."
#define STRING_TASK_PARSE_TAG_BRACK "Parentesi di tag mancanti."
@ -839,6 +840,8 @@
#define STRING_TASK_SAFETY_VALVE "Questo comando non ha filtro, e modificherà tutti i task. Sicuro?"
#define STRING_TASK_SAFETY_FAIL "Prevenuta l'esecuzione del comando."
#define STRING_TASK_SAFETY_ALLOW "You did not specify a filter, and with the 'allow.empty.filter' value, no action is taken."
#define STRING_TASK_INVALID_DUR "The duration value '{1}' is not supported."
#define STRING_TASK_INVALID_COL_TYPE "Unrecognized column type '{1}' for column '{2}'"
// TDB2
#define STRING_TDB2_PARSE_ERROR " in {1} alla linea {2}"

View file

@ -820,6 +820,7 @@
// Task
#define STRING_TASK_NO_FF1 "Taskwarrior já não suporta o formato 1, originalmente usado entre 27-Novembro-2006 e 31-Dezembro-2007."
#define STRING_TASK_NO_FF2 "Taskwarrior já não suporta o formato 2, originalmente usado entre 1-Janeiro-2008 e 12-April-2009."
#define STRING_TASK_NO_FF3 "Taskwarrior no longer supports file format 3, originally used between 23 March 2009 and 16 May 2009."
#define STRING_TASK_PARSE_ANNO_BRACK "Chavetas de anotação em falta."
#define STRING_TASK_PARSE_ATT_BRACK "Chavetas de atributo em falta."
#define STRING_TASK_PARSE_TAG_BRACK "Chavetas de marca em falta."
@ -839,6 +840,8 @@
#define STRING_TASK_SAFETY_VALVE "Este comando não possui um filtro e irá modificar todas as tarefas. Tem a certeza?"
#define STRING_TASK_SAFETY_FAIL "Execução do comando abortada."
#define STRING_TASK_SAFETY_ALLOW "Não especificou um filtro e com o valor de 'allow.empty.filter', nenhuma ação foi tomada."
#define STRING_TASK_INVALID_DUR "The duration value '{1}' is not supported."
#define STRING_TASK_INVALID_COL_TYPE "Unrecognized column type '{1}' for column '{2}'"
// TDB2
#define STRING_TDB2_PARSE_ERROR " em {1} na linha {2}"