mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
l10n: Eliminated STRING_CMD_UNIQUE_*
This commit is contained in:
parent
fb62263871
commit
20b9ead82a
10 changed files with 3 additions and 40 deletions
|
@ -31,7 +31,6 @@
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <Filter.h>
|
#include <Filter.h>
|
||||||
#include <format.h>
|
#include <format.h>
|
||||||
#include <i18n.h>
|
|
||||||
|
|
||||||
extern Context context;
|
extern Context context;
|
||||||
|
|
||||||
|
@ -40,7 +39,7 @@ CmdUnique::CmdUnique ()
|
||||||
{
|
{
|
||||||
_keyword = "_unique";
|
_keyword = "_unique";
|
||||||
_usage = "task <filter> _unique <attribute>";
|
_usage = "task <filter> _unique <attribute>";
|
||||||
_description = STRING_CMD_UNIQUE_USAGE;
|
_description = "Generates lists of unique attribute values";
|
||||||
_read_only = true;
|
_read_only = true;
|
||||||
_displays_id = true;
|
_displays_id = true;
|
||||||
_needs_gc = true;
|
_needs_gc = true;
|
||||||
|
@ -66,12 +65,12 @@ int CmdUnique::execute (std::string& output)
|
||||||
// Just the first arg.
|
// Just the first arg.
|
||||||
auto words = context.cli2.getWords ();
|
auto words = context.cli2.getWords ();
|
||||||
if (words.size () == 0)
|
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];
|
attribute = words[0];
|
||||||
|
|
||||||
std::string canonical;
|
std::string canonical;
|
||||||
if (! context.cli2.canonicalize (canonical, "attribute", attribute))
|
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.
|
// Find the unique set of matching tasks.
|
||||||
std::set <std::string> values;
|
std::set <std::string> values;
|
||||||
|
|
|
@ -133,10 +133,6 @@
|
||||||
#define STRING_CMD_TAGS_SINGLE "1 Schlagwort"
|
#define STRING_CMD_TAGS_SINGLE "1 Schlagwort"
|
||||||
#define STRING_CMD_TAGS_PLURAL "{1} Schlagworte"
|
#define STRING_CMD_TAGS_PLURAL "{1} Schlagworte"
|
||||||
#define STRING_CMD_TAGS_NO_TAGS "Keine 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_USAGE "Importiert eine JSON-Datei"
|
||||||
#define STRING_CMD_IMPORT_SUMMARY "{1} Aufgabe importiert."
|
#define STRING_CMD_IMPORT_SUMMARY "{1} Aufgabe importiert."
|
||||||
#define STRING_CMD_IMPORT_FILE "Importiere '{1}'"
|
#define STRING_CMD_IMPORT_FILE "Importiere '{1}'"
|
||||||
|
|
|
@ -133,10 +133,6 @@
|
||||||
#define STRING_CMD_TAGS_SINGLE "1 tag"
|
#define STRING_CMD_TAGS_SINGLE "1 tag"
|
||||||
#define STRING_CMD_TAGS_PLURAL "{1} tags"
|
#define STRING_CMD_TAGS_PLURAL "{1} tags"
|
||||||
#define STRING_CMD_TAGS_NO_TAGS "No 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_USAGE "Imports JSON files"
|
||||||
#define STRING_CMD_IMPORT_SUMMARY "Imported {1} tasks."
|
#define STRING_CMD_IMPORT_SUMMARY "Imported {1} tasks."
|
||||||
#define STRING_CMD_IMPORT_FILE "Importing '{1}'"
|
#define STRING_CMD_IMPORT_FILE "Importing '{1}'"
|
||||||
|
|
|
@ -133,10 +133,6 @@
|
||||||
#define STRING_CMD_TAGS_SINGLE "1 etikedo"
|
#define STRING_CMD_TAGS_SINGLE "1 etikedo"
|
||||||
#define STRING_CMD_TAGS_PLURAL "{1} etikedoj"
|
#define STRING_CMD_TAGS_PLURAL "{1} etikedoj"
|
||||||
#define STRING_CMD_TAGS_NO_TAGS "Nenia etikedo."
|
#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_USAGE "Importas JSON-dosierojn"
|
||||||
#define STRING_CMD_IMPORT_SUMMARY "Importis {1} taskojn."
|
#define STRING_CMD_IMPORT_SUMMARY "Importis {1} taskojn."
|
||||||
#define STRING_CMD_IMPORT_FILE "Importanta '{1}'"
|
#define STRING_CMD_IMPORT_FILE "Importanta '{1}'"
|
||||||
|
|
|
@ -135,10 +135,6 @@
|
||||||
#define STRING_CMD_TAGS_SINGLE "1 marca"
|
#define STRING_CMD_TAGS_SINGLE "1 marca"
|
||||||
#define STRING_CMD_TAGS_PLURAL "{1} marcas"
|
#define STRING_CMD_TAGS_PLURAL "{1} marcas"
|
||||||
#define STRING_CMD_TAGS_NO_TAGS "No hay 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_USAGE "Importa archivos JSON"
|
||||||
#define STRING_CMD_IMPORT_SUMMARY "Importadas {1} tareas."
|
#define STRING_CMD_IMPORT_SUMMARY "Importadas {1} tareas."
|
||||||
#define STRING_CMD_IMPORT_FILE "Importando '{1}'"
|
#define STRING_CMD_IMPORT_FILE "Importando '{1}'"
|
||||||
|
|
|
@ -133,10 +133,6 @@
|
||||||
#define STRING_CMD_TAGS_SINGLE "1 étiquette"
|
#define STRING_CMD_TAGS_SINGLE "1 étiquette"
|
||||||
#define STRING_CMD_TAGS_PLURAL "{1} étiquettes"
|
#define STRING_CMD_TAGS_PLURAL "{1} étiquettes"
|
||||||
#define STRING_CMD_TAGS_NO_TAGS "Pas d'é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_USAGE "Imports JSON files"
|
||||||
#define STRING_CMD_IMPORT_SUMMARY "Imported {1} tasks."
|
#define STRING_CMD_IMPORT_SUMMARY "Imported {1} tasks."
|
||||||
#define STRING_CMD_IMPORT_FILE "Importing '{1}'"
|
#define STRING_CMD_IMPORT_FILE "Importing '{1}'"
|
||||||
|
|
|
@ -132,10 +132,6 @@
|
||||||
#define STRING_CMD_TAGS_SINGLE "1 tag"
|
#define STRING_CMD_TAGS_SINGLE "1 tag"
|
||||||
#define STRING_CMD_TAGS_PLURAL "{1} tag"
|
#define STRING_CMD_TAGS_PLURAL "{1} tag"
|
||||||
#define STRING_CMD_TAGS_NO_TAGS "Nessun 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_USAGE "Importa file JSON"
|
||||||
#define STRING_CMD_IMPORT_SUMMARY "Importati {1} task."
|
#define STRING_CMD_IMPORT_SUMMARY "Importati {1} task."
|
||||||
#define STRING_CMD_IMPORT_FILE "Importazione di '{1}'"
|
#define STRING_CMD_IMPORT_FILE "Importazione di '{1}'"
|
||||||
|
|
|
@ -133,10 +133,6 @@
|
||||||
#define STRING_CMD_TAGS_SINGLE "1 つのタグ"
|
#define STRING_CMD_TAGS_SINGLE "1 つのタグ"
|
||||||
#define STRING_CMD_TAGS_PLURAL "{1} 個のタグ"
|
#define STRING_CMD_TAGS_PLURAL "{1} 個のタグ"
|
||||||
#define STRING_CMD_TAGS_NO_TAGS "タグがない。"
|
#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_USAGE "JSON ファイルをインポート"
|
||||||
#define STRING_CMD_IMPORT_SUMMARY "{1} task をインポートしました。"
|
#define STRING_CMD_IMPORT_SUMMARY "{1} task をインポートしました。"
|
||||||
#define STRING_CMD_IMPORT_FILE "'{1}' をインポート中"
|
#define STRING_CMD_IMPORT_FILE "'{1}' をインポート中"
|
||||||
|
|
|
@ -133,10 +133,6 @@
|
||||||
#define STRING_CMD_TAGS_SINGLE "1 tag"
|
#define STRING_CMD_TAGS_SINGLE "1 tag"
|
||||||
#define STRING_CMD_TAGS_PLURAL "{1} tagów"
|
#define STRING_CMD_TAGS_PLURAL "{1} tagów"
|
||||||
#define STRING_CMD_TAGS_NO_TAGS "Brak 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_USAGE "Importuje pliki JSON"
|
||||||
#define STRING_CMD_IMPORT_SUMMARY "Zaimportowano {1} zadań."
|
#define STRING_CMD_IMPORT_SUMMARY "Zaimportowano {1} zadań."
|
||||||
#define STRING_CMD_IMPORT_FILE "Importowanie '{1}'"
|
#define STRING_CMD_IMPORT_FILE "Importowanie '{1}'"
|
||||||
|
|
|
@ -133,10 +133,6 @@
|
||||||
#define STRING_CMD_TAGS_SINGLE "1 marca"
|
#define STRING_CMD_TAGS_SINGLE "1 marca"
|
||||||
#define STRING_CMD_TAGS_PLURAL "{1} marcas"
|
#define STRING_CMD_TAGS_PLURAL "{1} marcas"
|
||||||
#define STRING_CMD_TAGS_NO_TAGS "Sem 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_USAGE "Importa ficheiros JSON"
|
||||||
#define STRING_CMD_IMPORT_SUMMARY "Importadas {1} tarefas."
|
#define STRING_CMD_IMPORT_SUMMARY "Importadas {1} tarefas."
|
||||||
#define STRING_CMD_IMPORT_FILE "A importar '{1}'"
|
#define STRING_CMD_IMPORT_FILE "A importar '{1}'"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue