diff --git a/src/commands/CmdUnique.cpp b/src/commands/CmdUnique.cpp index c596b2d6b..b1399db09 100644 --- a/src/commands/CmdUnique.cpp +++ b/src/commands/CmdUnique.cpp @@ -31,7 +31,6 @@ #include #include #include -#include extern Context context; @@ -40,7 +39,7 @@ CmdUnique::CmdUnique () { _keyword = "_unique"; _usage = "task _unique "; - _description = STRING_CMD_UNIQUE_USAGE; + _description = "Generates lists of unique attribute values"; _read_only = true; _displays_id = true; _needs_gc = true; @@ -66,12 +65,12 @@ int CmdUnique::execute (std::string& output) // Just the first arg. auto words = context.cli2.getWords (); if (words.size () == 0) - throw std::string (STRING_CMD_UNIQUE_MISSING); + throw std::string ("An attribute must be specified. See 'task _columns'."); attribute = words[0]; std::string canonical; if (! context.cli2.canonicalize (canonical, "attribute", attribute)) - throw std::string (STRING_CMD_UNIQUE_VALID); + throw std::string ("You must specify an attribute or UDA."); // Find the unique set of matching tasks. std::set values; diff --git a/src/l10n/deu-DEU.h b/src/l10n/deu-DEU.h index 73a8e9a50..d623cdcc0 100644 --- a/src/l10n/deu-DEU.h +++ b/src/l10n/deu-DEU.h @@ -135,10 +135,6 @@ #define STRING_CMD_TAGS_SINGLE "1 Schlagwort" #define STRING_CMD_TAGS_PLURAL "{1} Schlagworte" #define STRING_CMD_TAGS_NO_TAGS "Keine Schlagworte." -#define STRING_CMD_UNIQUE_USAGE "Generates lists of unique attribute values" -#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." -#define STRING_CMD_UNIQUE_VALID "You must specify an attribute or UDA." - #define STRING_CMD_IMPORT_USAGE "Importiert eine JSON-Datei" #define STRING_CMD_IMPORT_SUMMARY "{1} Aufgabe importiert." #define STRING_CMD_IMPORT_FILE "Importiere '{1}'" diff --git a/src/l10n/eng-USA.h b/src/l10n/eng-USA.h index e830310b4..2e5f6e2ab 100644 --- a/src/l10n/eng-USA.h +++ b/src/l10n/eng-USA.h @@ -135,10 +135,6 @@ #define STRING_CMD_TAGS_SINGLE "1 tag" #define STRING_CMD_TAGS_PLURAL "{1} tags" #define STRING_CMD_TAGS_NO_TAGS "No tags." -#define STRING_CMD_UNIQUE_USAGE "Generates lists of unique attribute values" -#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." -#define STRING_CMD_UNIQUE_VALID "You must specify an attribute or UDA." - #define STRING_CMD_IMPORT_USAGE "Imports JSON files" #define STRING_CMD_IMPORT_SUMMARY "Imported {1} tasks." #define STRING_CMD_IMPORT_FILE "Importing '{1}'" diff --git a/src/l10n/epo-RUS.h b/src/l10n/epo-RUS.h index 34901a14b..35f8ce061 100644 --- a/src/l10n/epo-RUS.h +++ b/src/l10n/epo-RUS.h @@ -135,10 +135,6 @@ #define STRING_CMD_TAGS_SINGLE "1 etikedo" #define STRING_CMD_TAGS_PLURAL "{1} etikedoj" #define STRING_CMD_TAGS_NO_TAGS "Nenia etikedo." -#define STRING_CMD_UNIQUE_USAGE "Generates lists of unique attribute values" -#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." -#define STRING_CMD_UNIQUE_VALID "You must specify an attribute or UDA." - #define STRING_CMD_IMPORT_USAGE "Importas JSON-dosierojn" #define STRING_CMD_IMPORT_SUMMARY "Importis {1} taskojn." #define STRING_CMD_IMPORT_FILE "Importanta '{1}'" diff --git a/src/l10n/esp-ESP.h b/src/l10n/esp-ESP.h index 9c4941c8f..cca1d5911 100644 --- a/src/l10n/esp-ESP.h +++ b/src/l10n/esp-ESP.h @@ -137,10 +137,6 @@ #define STRING_CMD_TAGS_SINGLE "1 marca" #define STRING_CMD_TAGS_PLURAL "{1} marcas" #define STRING_CMD_TAGS_NO_TAGS "No hay marcas." -#define STRING_CMD_UNIQUE_USAGE "Genera listas de valores de atributo únicos" -#define STRING_CMD_UNIQUE_MISSING "Se debe especificar un atributo. Ver 'task _columns'." -#define STRING_CMD_UNIQUE_VALID "Debe especificar un atributo o un UDA." - #define STRING_CMD_IMPORT_USAGE "Importa archivos JSON" #define STRING_CMD_IMPORT_SUMMARY "Importadas {1} tareas." #define STRING_CMD_IMPORT_FILE "Importando '{1}'" diff --git a/src/l10n/fra-FRA.h b/src/l10n/fra-FRA.h index 2533f26fd..e672546ad 100644 --- a/src/l10n/fra-FRA.h +++ b/src/l10n/fra-FRA.h @@ -135,10 +135,6 @@ #define STRING_CMD_TAGS_SINGLE "1 étiquette" #define STRING_CMD_TAGS_PLURAL "{1} étiquettes" #define STRING_CMD_TAGS_NO_TAGS "Pas d'étiquettes." -#define STRING_CMD_UNIQUE_USAGE "Generates lists of unique attribute values" -#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." -#define STRING_CMD_UNIQUE_VALID "You must specify an attribute or UDA." - #define STRING_CMD_IMPORT_USAGE "Imports JSON files" #define STRING_CMD_IMPORT_SUMMARY "Imported {1} tasks." #define STRING_CMD_IMPORT_FILE "Importing '{1}'" diff --git a/src/l10n/ita-ITA.h b/src/l10n/ita-ITA.h index 2a69575be..e1dabba51 100644 --- a/src/l10n/ita-ITA.h +++ b/src/l10n/ita-ITA.h @@ -134,10 +134,6 @@ #define STRING_CMD_TAGS_SINGLE "1 tag" #define STRING_CMD_TAGS_PLURAL "{1} tag" #define STRING_CMD_TAGS_NO_TAGS "Nessun tag." -#define STRING_CMD_UNIQUE_USAGE "Generates lists of unique attribute values" -#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." -#define STRING_CMD_UNIQUE_VALID "You must specify an attribute or UDA." - #define STRING_CMD_IMPORT_USAGE "Importa file JSON" #define STRING_CMD_IMPORT_SUMMARY "Importati {1} task." #define STRING_CMD_IMPORT_FILE "Importazione di '{1}'" diff --git a/src/l10n/jpn-JPN.h b/src/l10n/jpn-JPN.h index 743744dcb..a6be18b8f 100644 --- a/src/l10n/jpn-JPN.h +++ b/src/l10n/jpn-JPN.h @@ -135,10 +135,6 @@ #define STRING_CMD_TAGS_SINGLE "1 つのタグ" #define STRING_CMD_TAGS_PLURAL "{1} 個のタグ" #define STRING_CMD_TAGS_NO_TAGS "タグがない。" -#define STRING_CMD_UNIQUE_USAGE "Generates lists of unique attribute values" -#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." -#define STRING_CMD_UNIQUE_VALID "You must specify an attribute or UDA." - #define STRING_CMD_IMPORT_USAGE "JSON ファイルをインポート" #define STRING_CMD_IMPORT_SUMMARY "{1} task をインポートしました。" #define STRING_CMD_IMPORT_FILE "'{1}' をインポート中" diff --git a/src/l10n/pol-POL.h b/src/l10n/pol-POL.h index f11095d59..6f9c07726 100644 --- a/src/l10n/pol-POL.h +++ b/src/l10n/pol-POL.h @@ -135,10 +135,6 @@ #define STRING_CMD_TAGS_SINGLE "1 tag" #define STRING_CMD_TAGS_PLURAL "{1} tagów" #define STRING_CMD_TAGS_NO_TAGS "Brak tagów." -#define STRING_CMD_UNIQUE_USAGE "Generates lists of unique attribute values" -#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." -#define STRING_CMD_UNIQUE_VALID "You must specify an attribute or UDA." - #define STRING_CMD_IMPORT_USAGE "Importuje pliki JSON" #define STRING_CMD_IMPORT_SUMMARY "Zaimportowano {1} zadań." #define STRING_CMD_IMPORT_FILE "Importowanie '{1}'" diff --git a/src/l10n/por-PRT.h b/src/l10n/por-PRT.h index 21d5d379a..098293fc5 100644 --- a/src/l10n/por-PRT.h +++ b/src/l10n/por-PRT.h @@ -135,10 +135,6 @@ #define STRING_CMD_TAGS_SINGLE "1 marca" #define STRING_CMD_TAGS_PLURAL "{1} marcas" #define STRING_CMD_TAGS_NO_TAGS "Sem marcas." -#define STRING_CMD_UNIQUE_USAGE "Generates lists of unique attribute values" -#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." -#define STRING_CMD_UNIQUE_VALID "You must specify an attribute or UDA." - #define STRING_CMD_IMPORT_USAGE "Importa ficheiros JSON" #define STRING_CMD_IMPORT_SUMMARY "Importadas {1} tarefas." #define STRING_CMD_IMPORT_FILE "A importar '{1}'"