mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
l10n: Eliminated STRING_CMD_ADD_*
This commit is contained in:
parent
5f407ad121
commit
f8ae0577b4
11 changed files with 7 additions and 36 deletions
|
@ -28,7 +28,6 @@
|
|||
#include <CmdAdd.h>
|
||||
#include <Context.h>
|
||||
#include <format.h>
|
||||
#include <i18n.h>
|
||||
#include <main.h>
|
||||
|
||||
extern Context context;
|
||||
|
@ -38,7 +37,7 @@ CmdAdd::CmdAdd ()
|
|||
{
|
||||
_keyword = "add";
|
||||
_usage = "task add <mods>";
|
||||
_description = STRING_CMD_ADD_USAGE;
|
||||
_description = "Adds a new task";
|
||||
_read_only = false;
|
||||
_displays_id = false;
|
||||
_needs_gc = false;
|
||||
|
@ -67,20 +66,20 @@ int CmdAdd::execute (std::string& output)
|
|||
|
||||
if (context.verbose ("new-uuid") &&
|
||||
status != Task::recurring)
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, task.get ("uuid")) + '\n';
|
||||
output += format ("Created task {1}.\n", task.get ("uuid"));
|
||||
|
||||
else if (context.verbose ("new-uuid") &&
|
||||
status == Task::recurring)
|
||||
output += format (STRING_CMD_ADD_RECUR, task.get ("uuid")) + '\n';
|
||||
output += format ("Created task {1} (recurrence template).\n", task.get ("uuid"));
|
||||
|
||||
else if (context.verbose ("new-id") &&
|
||||
(status == Task::pending ||
|
||||
status == Task::waiting))
|
||||
output += format (STRING_CMD_ADD_FEEDBACK, task.id) + '\n';
|
||||
output += format ("Created task {1}.\n", task.id);
|
||||
|
||||
else if (context.verbose ("new-id") &&
|
||||
status == Task::recurring)
|
||||
output += format (STRING_CMD_ADD_RECUR, task.id) + '\n';
|
||||
output += format ("Created task {1} (recurrence template).\n", task.id);
|
||||
|
||||
if (context.verbose ("project"))
|
||||
context.footnote (onProjectChange (task));
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#include <Filter.h>
|
||||
#include <format.h>
|
||||
#include <util.h>
|
||||
#include <i18n.h>
|
||||
#include <main.h>
|
||||
|
||||
extern Context context;
|
||||
|
@ -118,11 +117,11 @@ int CmdDuplicate::execute (std::string&)
|
|||
if (context.verbose ("new-id") &&
|
||||
(status == Task::pending ||
|
||||
status == Task::waiting))
|
||||
std::cout << format (STRING_CMD_ADD_FEEDBACK, dup.id) + '\n';
|
||||
std::cout << format ("Created task {1}.\n", dup.id);
|
||||
|
||||
else if (context.verbose ("new-uuid") &&
|
||||
status != Task::recurring)
|
||||
std::cout << format (STRING_CMD_ADD_FEEDBACK, dup.get ("uuid")) + '\n';
|
||||
std::cout << format ("Created task {1}.\n", dup.get ("uuid"));
|
||||
|
||||
if (context.verbose ("project"))
|
||||
projectChanges[task.get ("project")] = onProjectChange (task);
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#ifndef INCLUDED_STRINGS
|
||||
#define INCLUDED_STRINGS
|
||||
|
||||
#define STRING_CMD_ADD_FEEDBACK "Aufgabe {1} hinzugefügt."
|
||||
#define STRING_CMD_ADD_RECUR "Created task {1} (recurrence template)."
|
||||
#define STRING_CMD_ADD_USAGE "Fügt eine neue Aufgabe hinzu"
|
||||
#define STRING_CMD_ALIASES_USAGE "Erzeugt eine Liste aller Aliase zur Auto-Vervollständigung"
|
||||
#define STRING_CMD_CAL_BAD_ARG "Konnte Argument '{1}' nicht erkennen."
|
||||
#define STRING_CMD_CAL_BAD_MONTH "Argument '{1}' ist kein zulässiger Monat."
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#ifndef INCLUDED_STRINGS
|
||||
#define INCLUDED_STRINGS
|
||||
|
||||
#define STRING_CMD_ADD_FEEDBACK "Created task {1}."
|
||||
#define STRING_CMD_ADD_RECUR "Created task {1} (recurrence template)."
|
||||
#define STRING_CMD_ADD_USAGE "Adds a new task"
|
||||
#define STRING_CMD_ALIASES_USAGE "Generates a list of all aliases, for autocompletion purposes"
|
||||
#define STRING_CMD_CAL_BAD_ARG "Could not recognize argument '{1}'."
|
||||
#define STRING_CMD_CAL_BAD_MONTH "Argument '{1}' is not a valid month."
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#ifndef INCLUDED_STRINGS
|
||||
#define INCLUDED_STRINGS
|
||||
|
||||
#define STRING_CMD_ADD_FEEDBACK "Kreis taskon {1}."
|
||||
#define STRING_CMD_ADD_RECUR "Created task {1} (recurrence template)."
|
||||
#define STRING_CMD_ADD_USAGE "Kreas novan taskon"
|
||||
#define STRING_CMD_ALIASES_USAGE "Generates a list of all aliases, for autocompletion purposes"
|
||||
#define STRING_CMD_CAL_BAD_ARG "Ne povis rekoni argumenton '{1}'."
|
||||
#define STRING_CMD_CAL_BAD_MONTH "Argumento '{1}' ne estas valida monato."
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#ifndef INCLUDED_STRINGS
|
||||
#define INCLUDED_STRINGS
|
||||
|
||||
#define STRING_CMD_ADD_FEEDBACK "Creada tarea {1}."
|
||||
#define STRING_CMD_ADD_RECUR "Creada tarea {1} (modelo de recurrencia)."
|
||||
#define STRING_CMD_ADD_USAGE "Añade una nueva tarea"
|
||||
#define STRING_CMD_ALIASES_USAGE "Genera una lista de todos los alias, con fines de auto-completado"
|
||||
#define STRING_CMD_CAL_BAD_ARG "No se pudo reconocer el argumento '{1}'."
|
||||
#define STRING_CMD_CAL_BAD_MONTH "El argumento '{1}' no es un mes válido."
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#ifndef INCLUDED_STRINGS
|
||||
#define INCLUDED_STRINGS
|
||||
|
||||
#define STRING_CMD_ADD_FEEDBACK "Tâche {1} crée."
|
||||
#define STRING_CMD_ADD_RECUR "Created task {1} (recurrence template)."
|
||||
#define STRING_CMD_ADD_USAGE "Ajoute une nouvelle tâche"
|
||||
#define STRING_CMD_ALIASES_USAGE "Generates a list of all aliases, for autocompletion purposes"
|
||||
#define STRING_CMD_CAL_BAD_ARG "Could not recognize argument '{1}'."
|
||||
#define STRING_CMD_CAL_BAD_MONTH "Argument '{1}' is not a valid month."
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#ifndef INCLUDED_STRINGS
|
||||
#define INCLUDED_STRINGS
|
||||
|
||||
#define STRING_CMD_ADD_FEEDBACK "Task {1} creato."
|
||||
#define STRING_CMD_ADD_RECUR "Created task {1} (recurrence template)."
|
||||
#define STRING_CMD_ADD_USAGE "Aggiunge un nuovo task"
|
||||
#define STRING_CMD_ALIASES_USAGE "Genera la lista di tutti gli alias, per autocompletamento"
|
||||
#define STRING_CMD_CAL_BAD_ARG "Impossibile riconosce l'argomento '{1}'."
|
||||
#define STRING_CMD_CAL_BAD_MONTH "L'argomento '{1}' non è un mese valido."
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#ifndef INCLUDED_STRINGS
|
||||
#define INCLUDED_STRINGS
|
||||
|
||||
#define STRING_CMD_ADD_FEEDBACK "タスク {1} が生成されました。"
|
||||
#define STRING_CMD_ADD_RECUR "Created task {1} (recurrence template)."
|
||||
#define STRING_CMD_ADD_USAGE "新しいタスクの追加"
|
||||
#define STRING_CMD_ALIASES_USAGE "Generates a list of all aliases, for autocompletion purposes"
|
||||
#define STRING_CMD_CAL_BAD_ARG "引数'{1}' を認識できません。"
|
||||
#define STRING_CMD_CAL_BAD_MONTH "引数 '{1}' は正しい月ではありません。"
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#ifndef INCLUDED_STRINGS
|
||||
#define INCLUDED_STRINGS
|
||||
|
||||
#define STRING_CMD_ADD_FEEDBACK "Utworzono zadanie {1}."
|
||||
#define STRING_CMD_ADD_RECUR "Created task {1} (recurrence template)."
|
||||
#define STRING_CMD_ADD_USAGE "Dodaje nowe zadanie"
|
||||
#define STRING_CMD_ALIASES_USAGE "Generuje listę wszystkich aliasów dla funkcji autouzupełniania"
|
||||
#define STRING_CMD_CAL_BAD_ARG "Nie rozpoznany argument '{1}'."
|
||||
#define STRING_CMD_CAL_BAD_MONTH "Argument '{1}' nie jest poprawnym miesiącem"
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#ifndef INCLUDED_STRINGS
|
||||
#define INCLUDED_STRINGS
|
||||
|
||||
#define STRING_CMD_ADD_FEEDBACK "Criada a tarefa {1}."
|
||||
#define STRING_CMD_ADD_RECUR "Created task {1} (recurrence template)."
|
||||
#define STRING_CMD_ADD_USAGE "Adiciona uma nova tarefa"
|
||||
#define STRING_CMD_ALIASES_USAGE "Gera uma lista com todos os 'alias', para fins de terminação automática"
|
||||
#define STRING_CMD_CAL_BAD_ARG "Não foi possível reconhecer o argumento '{1}'."
|
||||
#define STRING_CMD_CAL_BAD_MONTH "Argumento '{1}' não é um mês válido."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue