l10n: Eliminated STRING_CMD_UNIQUE_*

This commit is contained in:
Paul Beckingham 2018-01-21 11:48:16 -05:00
parent ee59bde88b
commit 30ae2dd355
10 changed files with 3 additions and 40 deletions

View file

@ -31,7 +31,6 @@
#include <Context.h>
#include <Filter.h>
#include <format.h>
#include <i18n.h>
extern Context context;
@ -40,7 +39,7 @@ CmdUnique::CmdUnique ()
{
_keyword = "_unique";
_usage = "task <filter> _unique <attribute>";
_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 <std::string> values;

View file

@ -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}'"

View file

@ -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}'"

View file

@ -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}'"

View file

@ -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}'"

View file

@ -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}'"

View file

@ -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}'"

View file

@ -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}' をインポート中"

View file

@ -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}'"

View file

@ -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}'"