From e93c61ae8d73da7a3c7070f29c9e424e7f55e913 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 14 Sep 2014 12:11:45 -0400 Subject: [PATCH] L10N - Localized two remaining errors in Task.cpp that were missed. --- src/Task.cpp | 4 ++-- src/l10n/eng-USA.h | 3 +++ src/l10n/epo-RUS.h | 3 +++ src/l10n/esp-ESP.h | 3 +++ src/l10n/fra-FRA.h | 3 +++ src/l10n/ita-ITA.h | 3 +++ src/l10n/por-PRT.h | 3 +++ 7 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index 2a7f39a4a..65564c282 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -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); diff --git a/src/l10n/eng-USA.h b/src/l10n/eng-USA.h index 0cd3714b9..890440b3a 100644 --- a/src/l10n/eng-USA.h +++ b/src/l10n/eng-USA.h @@ -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}" diff --git a/src/l10n/epo-RUS.h b/src/l10n/epo-RUS.h index fe4ba2e60..6316dee46 100644 --- a/src/l10n/epo-RUS.h +++ b/src/l10n/epo-RUS.h @@ -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}" diff --git a/src/l10n/esp-ESP.h b/src/l10n/esp-ESP.h index 0194f9841..641dfb63c 100644 --- a/src/l10n/esp-ESP.h +++ b/src/l10n/esp-ESP.h @@ -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}" diff --git a/src/l10n/fra-FRA.h b/src/l10n/fra-FRA.h index 0069235cb..e76679e43 100644 --- a/src/l10n/fra-FRA.h +++ b/src/l10n/fra-FRA.h @@ -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}" diff --git a/src/l10n/ita-ITA.h b/src/l10n/ita-ITA.h index 90e51b371..6746b4879 100644 --- a/src/l10n/ita-ITA.h +++ b/src/l10n/ita-ITA.h @@ -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}" diff --git a/src/l10n/por-PRT.h b/src/l10n/por-PRT.h index 425baf8d3..198d1b590 100644 --- a/src/l10n/por-PRT.h +++ b/src/l10n/por-PRT.h @@ -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}"