diff --git a/src/Task.cpp b/src/Task.cpp index 83b65cad6..6ed35304f 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -2106,7 +2106,7 @@ void Task::modify (modType type, bool text_required /* = false */) Column* column = context.columns[name]; if (! column || ! column->modifiable ()) - throw format (STRING_INVALID_MOD, name, value); + throw format ("The '{1}' attribute does not allow a value of '{2}'.", name, value); // Delegate modification to the column object or their base classes. if (name == "depends" || diff --git a/src/columns/ColTypeString.cpp b/src/columns/ColTypeString.cpp index 4725b89d1..0b1a79771 100644 --- a/src/columns/ColTypeString.cpp +++ b/src/columns/ColTypeString.cpp @@ -31,7 +31,8 @@ #include #include #include -#include + +#define STRING_INVALID_MOD "The '{1}' attribute does not allow a value of '{2}'." extern Context context; extern Task& contextTask; diff --git a/src/l10n/deu-DEU.h b/src/l10n/deu-DEU.h index 957974552..fc03fb14c 100644 --- a/src/l10n/deu-DEU.h +++ b/src/l10n/deu-DEU.h @@ -473,7 +473,6 @@ // Errors // TODO Move each of these to appropriate section. -#define STRING_INVALID_MOD "Die '{1}'-Eigenschaft erlaubt keinen Wert '{2}'." #define STRING_ERROR_DETAILS "Die Option 'calendar.details.report' muss einen einzelnen Report-Namen enthalten." #define STRING_ERROR_NO_FILTER "Command line filters are not supported by this command." diff --git a/src/l10n/eng-USA.h b/src/l10n/eng-USA.h index b7bde5d3d..8e3eb960e 100644 --- a/src/l10n/eng-USA.h +++ b/src/l10n/eng-USA.h @@ -470,7 +470,6 @@ // Errors // TODO Move each of these to appropriate section. -#define STRING_INVALID_MOD "The '{1}' attribute does not allow a value of '{2}'." #define STRING_ERROR_DETAILS "The setting 'calendar.details.report' must contain a single report name." #define STRING_ERROR_NO_FILTER "Command line filters are not supported by this command." diff --git a/src/l10n/epo-RUS.h b/src/l10n/epo-RUS.h index 057a89cd8..77e977396 100644 --- a/src/l10n/epo-RUS.h +++ b/src/l10n/epo-RUS.h @@ -473,7 +473,6 @@ // Errors // TODO Move each of these to appropriate section. -#define STRING_INVALID_MOD "Atributo '{1}' ne permesas valoron '{2}'." #define STRING_ERROR_DETAILS "Agordo 'calendar.details.report' devas enhavi sole unu raportnomon." #define STRING_ERROR_NO_FILTER "Command line filters are not supported by this command." diff --git a/src/l10n/esp-ESP.h b/src/l10n/esp-ESP.h index 170173f2b..c2588ada1 100644 --- a/src/l10n/esp-ESP.h +++ b/src/l10n/esp-ESP.h @@ -485,7 +485,6 @@ // Errors // TODO Move each of these to appropriate section. -#define STRING_INVALID_MOD "El atributo '{1}' no admite un valor '{2}'." #define STRING_ERROR_DETAILS "El ajuste 'calendar.details.report' debe contener un único nombre de informe." #define STRING_ERROR_NO_FILTER "Los filtros de línea de comando no están soportados por este comando." diff --git a/src/l10n/fra-FRA.h b/src/l10n/fra-FRA.h index fc37bdef8..40a283ffc 100644 --- a/src/l10n/fra-FRA.h +++ b/src/l10n/fra-FRA.h @@ -495,7 +495,6 @@ // Errors // TODO Move each of these to appropriate section. -#define STRING_INVALID_MOD "The '{1}' attribute does not allow a value of '{2}'." #define STRING_ERROR_DETAILS "The setting 'calendar.details.report' must contain a single report name." #define STRING_ERROR_NO_FILTER "Command line filters are not supported by this command." diff --git a/src/l10n/ita-ITA.h b/src/l10n/ita-ITA.h index 56fd3711d..3d536d608 100644 --- a/src/l10n/ita-ITA.h +++ b/src/l10n/ita-ITA.h @@ -474,7 +474,6 @@ // Errors // TODO Move each of these to appropriate section. -#define STRING_INVALID_MOD "L'attributo '{1}' non ammette un valore pari a '{2}'." #define STRING_ERROR_DETAILS "The setting 'calendar.details.report' must contain a single report name." #define STRING_ERROR_NO_FILTER "Command line filters are not supported by this command." diff --git a/src/l10n/jpn-JPN.h b/src/l10n/jpn-JPN.h index 472c438ac..2ac27442f 100644 --- a/src/l10n/jpn-JPN.h +++ b/src/l10n/jpn-JPN.h @@ -475,7 +475,6 @@ // Errors // TODO Move each of these to appropriate section. -#define STRING_INVALID_MOD "The '{1}' attribute does not allow a value of '{2}'." #define STRING_ERROR_DETAILS "The setting 'calendar.details.report' must contain a single report name." #define STRING_ERROR_NO_FILTER "Command line filters are not supported by this command." diff --git a/src/l10n/pol-POL.h b/src/l10n/pol-POL.h index b688dccb6..2daad7f08 100644 --- a/src/l10n/pol-POL.h +++ b/src/l10n/pol-POL.h @@ -475,7 +475,6 @@ // Errors // TODO Move each of these to appropriate section. -#define STRING_INVALID_MOD "Atrybut '{1}' nie zezwala na wartość '{2}'." #define STRING_ERROR_DETAILS "Zmienna 'calendar.details.report' musi zawierać nazwę raportu." #define STRING_ERROR_NO_FILTER "Command line filters are not supported by this command." diff --git a/src/l10n/por-PRT.h b/src/l10n/por-PRT.h index bc579d2df..9b6840ca4 100644 --- a/src/l10n/por-PRT.h +++ b/src/l10n/por-PRT.h @@ -475,7 +475,6 @@ // Errors // TODO Move each of these to appropriate section. -#define STRING_INVALID_MOD "O atributo '{1}' não permite o valor '{2}'." #define STRING_ERROR_DETAILS "A definição 'calendar.details.report' pode apenas indicar um nome de relatório." #define STRING_ERROR_NO_FILTER "Command line filters are not supported by this command."