From f1049b4a7aa1699f5ab8c447772bbe8b0a055df3 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 15 Jan 2018 12:28:52 -0500 Subject: [PATCH] l10n: Eliminated STRING_TASK_INVALID_DUR --- src/columns/ColRecur.cpp | 2 +- src/columns/ColTypeDuration.cpp | 3 +-- src/l10n/deu-DEU.h | 1 - src/l10n/eng-USA.h | 1 - src/l10n/epo-RUS.h | 1 - src/l10n/esp-ESP.h | 1 - src/l10n/fra-FRA.h | 1 - src/l10n/ita-ITA.h | 1 - src/l10n/jpn-JPN.h | 1 - src/l10n/pol-POL.h | 1 - src/l10n/por-PRT.h | 1 - 11 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/columns/ColRecur.cpp b/src/columns/ColRecur.cpp index 27bbc40fb..57e2350af 100644 --- a/src/columns/ColRecur.cpp +++ b/src/columns/ColRecur.cpp @@ -127,7 +127,7 @@ void ColumnRecur::modify (Task& task, const std::string& value) task.set (_name, value); } else - throw format (STRING_TASK_INVALID_DUR, value); + throw format ("The duration value '{1}' is not supported.", value); } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/columns/ColTypeDuration.cpp b/src/columns/ColTypeDuration.cpp index 8bf134678..a869dcfc5 100644 --- a/src/columns/ColTypeDuration.cpp +++ b/src/columns/ColTypeDuration.cpp @@ -31,7 +31,6 @@ #include #include #include -#include extern Context context; extern Task& contextTask; @@ -76,7 +75,7 @@ void ColumnTypeDuration::modify (Task& task, const std::string& value) task.set (_name, evaluatedValue); } else - throw format (STRING_TASK_INVALID_DUR, value); + throw format ("The duration value '{1}' is not supported.", value); } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/l10n/deu-DEU.h b/src/l10n/deu-DEU.h index dc1d276d2..97cb3c6da 100644 --- a/src/l10n/deu-DEU.h +++ b/src/l10n/deu-DEU.h @@ -784,7 +784,6 @@ #define STRING_TASK_SAFETY_VALVE "This command has no filter, and will modify all (including completed and deleted) tasks. Are you sure?" #define STRING_TASK_SAFETY_FAIL "Befehl an Ausführung gehindert." #define STRING_TASK_SAFETY_ALLOW "Kein Filter angegeben, und durch den konfigurierten 'allow.empty.filter'-Wert wurde keine Aktion durchgeführt." -#define STRING_TASK_INVALID_DUR "Zeitdauer '{1}' nicht unterstützt." #define STRING_TASK_INVALID_COL_TYPE "Nicht erkannter Typ '{1}' für Spalte '{2}'" // TDB2 diff --git a/src/l10n/eng-USA.h b/src/l10n/eng-USA.h index e8b13923a..893c4e13c 100644 --- a/src/l10n/eng-USA.h +++ b/src/l10n/eng-USA.h @@ -782,7 +782,6 @@ #define STRING_TASK_SAFETY_VALVE "This command has no filter, and will modify all (including completed and deleted) 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 diff --git a/src/l10n/epo-RUS.h b/src/l10n/epo-RUS.h index f801eab1a..8cb0d8e1d 100644 --- a/src/l10n/epo-RUS.h +++ b/src/l10n/epo-RUS.h @@ -784,7 +784,6 @@ #define STRING_TASK_SAFETY_VALVE "This command has no filter, and will modify all (including completed and deleted) tasks. Are you sure?" #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 diff --git a/src/l10n/esp-ESP.h b/src/l10n/esp-ESP.h index 77e59a012..005f20fe3 100644 --- a/src/l10n/esp-ESP.h +++ b/src/l10n/esp-ESP.h @@ -796,7 +796,6 @@ #define STRING_TASK_SAFETY_VALVE "This command has no filter, and will modify all (including completed and deleted) tasks. Are you sure?" #define STRING_TASK_SAFETY_FAIL "Se impidió la ejecución del comando." #define STRING_TASK_SAFETY_ALLOW "No especificó un filtro, y con el valor de 'allow.empty.filter', no se toma ninguna acción." -#define STRING_TASK_INVALID_DUR "El valor de duración '{1}' no está soportado." #define STRING_TASK_INVALID_COL_TYPE "Tipo de columna no reconocido '{1}' para la columna '{2}'" // TDB2 diff --git a/src/l10n/fra-FRA.h b/src/l10n/fra-FRA.h index c4efe12c0..57850f701 100644 --- a/src/l10n/fra-FRA.h +++ b/src/l10n/fra-FRA.h @@ -786,7 +786,6 @@ #define STRING_TASK_SAFETY_VALVE "This command has no filter, and will modify all (including completed and deleted) 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 diff --git a/src/l10n/ita-ITA.h b/src/l10n/ita-ITA.h index d60cb63ab..090884ef0 100644 --- a/src/l10n/ita-ITA.h +++ b/src/l10n/ita-ITA.h @@ -785,7 +785,6 @@ #define STRING_TASK_SAFETY_VALVE "This command has no filter, and will modify all (including completed and deleted) tasks. Are you sure?" #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 diff --git a/src/l10n/jpn-JPN.h b/src/l10n/jpn-JPN.h index 6e8b9ce23..0e6a3f8c5 100644 --- a/src/l10n/jpn-JPN.h +++ b/src/l10n/jpn-JPN.h @@ -786,7 +786,6 @@ #define STRING_TASK_SAFETY_VALVE "This command has no filter, and will modify all (including completed and deleted) tasks. Are you sure?" #define STRING_TASK_SAFETY_FAIL "コマンドの実行は中止された。" #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 diff --git a/src/l10n/pol-POL.h b/src/l10n/pol-POL.h index a4f7fef7b..e1194ff4d 100644 --- a/src/l10n/pol-POL.h +++ b/src/l10n/pol-POL.h @@ -786,7 +786,6 @@ #define STRING_TASK_SAFETY_VALVE "This command has no filter, and will modify all (including completed and deleted) tasks. Are you sure?" #define STRING_TASK_SAFETY_FAIL "Niedopuszczono do wykonania polecenia." #define STRING_TASK_SAFETY_ALLOW "Brak filtra, z aktywną flagą 'allow.empty.filter', nie podjęto akcji." -#define STRING_TASK_INVALID_DUR "Wartość czas trwania '{1}' jest niewspierana." #define STRING_TASK_INVALID_COL_TYPE "Nierozpoznany typ kolumny '{1}' dla kolumny '{2}'" // TDB2 diff --git a/src/l10n/por-PRT.h b/src/l10n/por-PRT.h index c3d12ac29..e417aed57 100644 --- a/src/l10n/por-PRT.h +++ b/src/l10n/por-PRT.h @@ -786,7 +786,6 @@ #define STRING_TASK_SAFETY_VALVE "This command has no filter, and will modify all (including completed and deleted) tasks. Are you sure?" #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