l10n: Eliminated STRING_CMD_APPEND_*

This commit is contained in:
Paul Beckingham 2018-01-20 21:39:49 -05:00
parent 360b1d81d1
commit 11921878a4
10 changed files with 7 additions and 88 deletions

View file

@ -41,7 +41,7 @@ CmdAppend::CmdAppend ()
{ {
_keyword = "append"; _keyword = "append";
_usage = "task <filter> append <mods>"; _usage = "task <filter> append <mods>";
_description = STRING_CMD_APPEND_USAGE; _description = "Appends text to an existing task description";
_read_only = false; _read_only = false;
_displays_id = false; _displays_id = false;
_needs_gc = false; _needs_gc = false;
@ -78,7 +78,7 @@ int CmdAppend::execute (std::string&)
Task before (task); Task before (task);
// Append to the specified task. // Append to the specified task.
auto question = format (STRING_CMD_APPEND_CONFIRM, auto question = format ("Append to task {1} '{2}'?",
task.identifier (true), task.identifier (true),
task.get ("description")); task.get ("description"));
@ -88,7 +88,7 @@ int CmdAppend::execute (std::string&)
{ {
context.tdb2.modify (task); context.tdb2.modify (task);
++count; ++count;
feedback_affected (STRING_CMD_APPEND_TASK, task); feedback_affected ("Appending to task {1} '{2}'.", task);
if (context.verbose ("project")) if (context.verbose ("project"))
projectChanges[task.get ("project")] = onProjectChange (task, false); projectChanges[task.get ("project")] = onProjectChange (task, false);
@ -96,7 +96,7 @@ int CmdAppend::execute (std::string&)
if (task.has ("parent")) if (task.has ("parent"))
{ {
if ((context.config.get ("recurrence.confirmation") == "prompt" if ((context.config.get ("recurrence.confirmation") == "prompt"
&& confirm (STRING_CMD_APPEND_CONFIRM_R)) || && confirm ("This is a recurring task. Do you want to append to all pending recurrences of this same task?")) ||
context.config.getBoolean ("recurrence.confirmation")) context.config.getBoolean ("recurrence.confirmation"))
{ {
std::vector <Task> siblings = context.tdb2.siblings (task); std::vector <Task> siblings = context.tdb2.siblings (task);
@ -105,7 +105,7 @@ int CmdAppend::execute (std::string&)
sibling.modify (Task::modAppend, true); sibling.modify (Task::modAppend, true);
context.tdb2.modify (sibling); context.tdb2.modify (sibling);
++count; ++count;
feedback_affected (STRING_CMD_APPEND_TASK_R, sibling); feedback_affected ("Appending to recurring task {1} '{2}'.", sibling);
} }
// Append to the parent // Append to the parent
@ -118,7 +118,7 @@ int CmdAppend::execute (std::string&)
} }
else else
{ {
std::cout << STRING_CMD_APPEND_NO << '\n'; std::cout << "Task not appended.\n";
rc = 1; rc = 1;
if (_permission_quit) if (_permission_quit)
break; break;
@ -130,7 +130,7 @@ int CmdAppend::execute (std::string&)
if (change.first != "") if (change.first != "")
context.footnote (change.second); context.footnote (change.second);
feedback_affected (count == 1 ? STRING_CMD_APPEND_1 : STRING_CMD_APPEND_N, count); feedback_affected (count == 1 ? "Appended {1} task." : "Appended {1} tasks.", count);
return rc; return rc;
} }

View file

@ -172,15 +172,6 @@
#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." #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_UNIQUE_VALID "You must specify an attribute or UDA."
#define STRING_CMD_APPEND_USAGE "Fügt einer Aufgabenbeschreibung Text hinzu"
#define STRING_CMD_APPEND_1 "Zu {1} Aufgabe hinzugefügt."
#define STRING_CMD_APPEND_N "Zu {1} Aufgaben hinzugefügt."
#define STRING_CMD_APPEND_TASK "Füge zur Aufgabe {1} '{2}' hinzu."
#define STRING_CMD_APPEND_TASK_R "Füge zur wiederholenden Aufgabe {1} '{2}' hinzu."
#define STRING_CMD_APPEND_CONFIRM_R "Dies ist eine wiederholende Aufgabe. Möchten Sie zu allen offenen Wiederholungen dieser Aufgabe hinzufügen?"
#define STRING_CMD_APPEND_CONFIRM "Zu Aufgabe {1} '{2}' hinzufügen?"
#define STRING_CMD_APPEND_NO "Nicht zu Aufgabe hinzugefügt."
#define STRING_CMD_PREPEND_USAGE "Stellt einer Aufgabenbeschreibung Text voran" #define STRING_CMD_PREPEND_USAGE "Stellt einer Aufgabenbeschreibung Text voran"
#define STRING_CMD_PREPEND_1 "Vor {1} Aufgabe vorangestellt." #define STRING_CMD_PREPEND_1 "Vor {1} Aufgabe vorangestellt."
#define STRING_CMD_PREPEND_N "Vor {1} Aufgaben vorangestellt." #define STRING_CMD_PREPEND_N "Vor {1} Aufgaben vorangestellt."

View file

@ -169,15 +169,6 @@
#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." #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_UNIQUE_VALID "You must specify an attribute or UDA."
#define STRING_CMD_APPEND_USAGE "Appends text to an existing task description"
#define STRING_CMD_APPEND_1 "Appended {1} task."
#define STRING_CMD_APPEND_N "Appended {1} tasks."
#define STRING_CMD_APPEND_TASK "Appending to task {1} '{2}'."
#define STRING_CMD_APPEND_TASK_R "Appending to recurring task {1} '{2}'."
#define STRING_CMD_APPEND_CONFIRM_R "This is a recurring task. Do you want to append to all pending recurrences of this same task?"
#define STRING_CMD_APPEND_CONFIRM "Append to task {1} '{2}'?"
#define STRING_CMD_APPEND_NO "Task not appended."
#define STRING_CMD_PREPEND_USAGE "Prepends text to an existing task description" #define STRING_CMD_PREPEND_USAGE "Prepends text to an existing task description"
#define STRING_CMD_PREPEND_1 "Prepended {1} task." #define STRING_CMD_PREPEND_1 "Prepended {1} task."
#define STRING_CMD_PREPEND_N "Prepended {1} tasks." #define STRING_CMD_PREPEND_N "Prepended {1} tasks."

View file

@ -172,15 +172,6 @@
#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." #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_UNIQUE_VALID "You must specify an attribute or UDA."
#define STRING_CMD_APPEND_USAGE "Aldonas tekston post task-priskribo"
#define STRING_CMD_APPEND_1 "Aldonis al {1} tasko."
#define STRING_CMD_APPEND_N "Aldonis al {1} taskoj."
#define STRING_CMD_APPEND_TASK "Aldonanta al tasko {1} '{2}'."
#define STRING_CMD_APPEND_TASK_R "Aldonanta al reokazanta tasko {1} '{2}'."
#define STRING_CMD_APPEND_CONFIRM_R "Tio estas reokazanta tasko. Ĉu vi volas aldoni al ĉia pendanta okazaĵo de ĉi tiu tasko?"
#define STRING_CMD_APPEND_CONFIRM "Aldoni al tasko {1} '{2}'?"
#define STRING_CMD_APPEND_NO "Ne aldonis al tasko."
#define STRING_CMD_PREPEND_USAGE "Aldonas tekston antaŭ task-priskribo" #define STRING_CMD_PREPEND_USAGE "Aldonas tekston antaŭ task-priskribo"
#define STRING_CMD_PREPEND_1 "Predonis al {1} tasko." #define STRING_CMD_PREPEND_1 "Predonis al {1} tasko."
#define STRING_CMD_PREPEND_N "Predonis {1} taskoj." #define STRING_CMD_PREPEND_N "Predonis {1} taskoj."

View file

@ -178,15 +178,6 @@
#define STRING_CMD_UNIQUE_MISSING "Se debe especificar un atributo. Ver 'task _columns'." #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_UNIQUE_VALID "Debe especificar un atributo o un UDA."
#define STRING_CMD_APPEND_USAGE "Añade texto al final de la descripción de una tarea existente"
#define STRING_CMD_APPEND_1 "Añadiendo texto a {1} tarea."
#define STRING_CMD_APPEND_N "Añadiendo texto a {1} tareas."
#define STRING_CMD_APPEND_TASK "Añadiendo texto a la tarea {1} '{2}'."
#define STRING_CMD_APPEND_TASK_R "Añadiendo texto a la tarea recurrente {1} '{2}'."
#define STRING_CMD_APPEND_CONFIRM_R "Esta es una tarea recurrente. ¿Quiere añadir a todas las recurrencias pendientes de esta misma tarea?"
#define STRING_CMD_APPEND_CONFIRM "¿Añadir a la tarea {1} '{2}'?"
#define STRING_CMD_APPEND_NO "Texto no añadido a la tarea."
#define STRING_CMD_PREPEND_USAGE "Antepone texto a la descripción de una tarea existente" #define STRING_CMD_PREPEND_USAGE "Antepone texto a la descripción de una tarea existente"
#define STRING_CMD_PREPEND_1 "Antepuesto texto a {1} tarea." #define STRING_CMD_PREPEND_1 "Antepuesto texto a {1} tarea."
#define STRING_CMD_PREPEND_N "Antepuesto texto a {1} tareas." #define STRING_CMD_PREPEND_N "Antepuesto texto a {1} tareas."

View file

@ -174,15 +174,6 @@
#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." #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_UNIQUE_VALID "You must specify an attribute or UDA."
#define STRING_CMD_APPEND_USAGE "Appends text to an existing task description"
#define STRING_CMD_APPEND_1 "Appended {1} task."
#define STRING_CMD_APPEND_N "Appended {1} tasks."
#define STRING_CMD_APPEND_TASK "Appending to task {1} '{2}'."
#define STRING_CMD_APPEND_TASK_R "Appending to recurring task {1} '{2}'."
#define STRING_CMD_APPEND_CONFIRM_R "This is a recurring task. Do you want to append to all pending recurrences of this same task?"
#define STRING_CMD_APPEND_CONFIRM "Append to task {1} '{2}'?"
#define STRING_CMD_APPEND_NO "Tâche non suffixée."
#define STRING_CMD_PREPEND_USAGE "Prepends text to an existing task description" #define STRING_CMD_PREPEND_USAGE "Prepends text to an existing task description"
#define STRING_CMD_PREPEND_1 "Prepended {1} task." #define STRING_CMD_PREPEND_1 "Prepended {1} task."
#define STRING_CMD_PREPEND_N "Prepended {1} tasks." #define STRING_CMD_PREPEND_N "Prepended {1} tasks."

View file

@ -173,15 +173,6 @@
#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." #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_UNIQUE_VALID "You must specify an attribute or UDA."
#define STRING_CMD_APPEND_USAGE "Aggiunge testo alla fine di una descrizione di un task esistente"
#define STRING_CMD_APPEND_1 "Aggiunta al task {1}."
#define STRING_CMD_APPEND_N "Aggiunte ai task {1}."
#define STRING_CMD_APPEND_TASK "Aggiunta al task {1} '{2}'."
#define STRING_CMD_APPEND_TASK_R "Aggiunta al task periodico {1} '{2}'."
#define STRING_CMD_APPEND_CONFIRM_R "Questo è un task periodico. Aggiungere il testo alla fine della descrizione di tutti i task associati?"
#define STRING_CMD_APPEND_CONFIRM "Aggiungere alla fine della descrizione del task {1} '{2}'?"
#define STRING_CMD_APPEND_NO "Aggiunta non effettuata."
#define STRING_CMD_PREPEND_USAGE "Aggiunge testo all'inizio di una descrizione di un task esistente" #define STRING_CMD_PREPEND_USAGE "Aggiunge testo all'inizio di una descrizione di un task esistente"
#define STRING_CMD_PREPEND_1 "Aggiunta al task {1}." #define STRING_CMD_PREPEND_1 "Aggiunta al task {1}."
#define STRING_CMD_PREPEND_N "Aggiunte ai task {1}." #define STRING_CMD_PREPEND_N "Aggiunte ai task {1}."

View file

@ -174,15 +174,6 @@
#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." #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_UNIQUE_VALID "You must specify an attribute or UDA."
#define STRING_CMD_APPEND_USAGE "存在する task 説明文にテキストを追加"
#define STRING_CMD_APPEND_1 "{1} タスク を追加。"
#define STRING_CMD_APPEND_N "{1} タスク を追加。"
#define STRING_CMD_APPEND_TASK "タスク {1} '{2}' を追加中。"
#define STRING_CMD_APPEND_TASK_R "Appending to recurring task {1} '{2}'."
#define STRING_CMD_APPEND_CONFIRM_R "This is a recurring task. Do you want to append to all pending recurrences of this same task?"
#define STRING_CMD_APPEND_CONFIRM "タスク {1} '{2}' を追加?"
#define STRING_CMD_APPEND_NO "タスク を追加できませんでした。"
#define STRING_CMD_PREPEND_USAGE "Prepends text to an existing task description" #define STRING_CMD_PREPEND_USAGE "Prepends text to an existing task description"
#define STRING_CMD_PREPEND_1 "Prepended {1} task." #define STRING_CMD_PREPEND_1 "Prepended {1} task."
#define STRING_CMD_PREPEND_N "Prepended {1} tasks." #define STRING_CMD_PREPEND_N "Prepended {1} tasks."

View file

@ -174,15 +174,6 @@
#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." #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_UNIQUE_VALID "You must specify an attribute or UDA."
#define STRING_CMD_APPEND_USAGE "Dodaje ciąg na końcu opisu zadania"
#define STRING_CMD_APPEND_1 "Dodano ciąg do opisu {1} zadania"
#define STRING_CMD_APPEND_N "Dodano ciąg do opisu {1} zadań"
#define STRING_CMD_APPEND_TASK "Dodawanie ciągu do opisu zadania {1} '{2}'."
#define STRING_CMD_APPEND_TASK_R "Dodawanie ciągu do opisu zadania cyklicznego {1} '{2}'."
#define STRING_CMD_APPEND_CONFIRM_R "To zadanie jest cykliczne. Czy chcesz dodać ciąg do opisu kolejnych zadań w cyklu?"
#define STRING_CMD_APPEND_CONFIRM "Dodać ciąg do opisu zadania {1} '{2}'?"
#define STRING_CMD_APPEND_NO "Nie dodano ciągu do opisu."
#define STRING_CMD_PREPEND_USAGE "Dodaje ciąg na początku opisu zadania" #define STRING_CMD_PREPEND_USAGE "Dodaje ciąg na początku opisu zadania"
#define STRING_CMD_PREPEND_1 "Dodano ciąg do opisu {1} zadania." #define STRING_CMD_PREPEND_1 "Dodano ciąg do opisu {1} zadania."
#define STRING_CMD_PREPEND_N "Dodano ciąg do opisu {1} zadań." #define STRING_CMD_PREPEND_N "Dodano ciąg do opisu {1} zadań."

View file

@ -174,15 +174,6 @@
#define STRING_CMD_UNIQUE_MISSING "An attribute must be specified. See 'task _columns'." #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_UNIQUE_VALID "You must specify an attribute or UDA."
#define STRING_CMD_APPEND_USAGE "Acrescenta texto à descrição de uma tarefa existente"
#define STRING_CMD_APPEND_1 "Acrescentada {1} tarefa."
#define STRING_CMD_APPEND_N "Acrescentadas {1} tarefas."
#define STRING_CMD_APPEND_TASK "A acrescentar à tarefa {1} '{2}'."
#define STRING_CMD_APPEND_TASK_R "A acrescentar à tarefa recorrente {1} '{2}'."
#define STRING_CMD_APPEND_CONFIRM_R "Esta é uma tarefa recorrente. Deseja acrescentar a todas as ocorrências pendentes desta tarefa?"
#define STRING_CMD_APPEND_CONFIRM "Acrescentado à tarefa {1} '{2}'?"
#define STRING_CMD_APPEND_NO "Tarefa não acrescentada."
#define STRING_CMD_PREPEND_USAGE "Antepõe texto à descrição de uma tarefa existente" #define STRING_CMD_PREPEND_USAGE "Antepõe texto à descrição de uma tarefa existente"
#define STRING_CMD_PREPEND_1 "Anteposta {1} tarefa." #define STRING_CMD_PREPEND_1 "Anteposta {1} tarefa."
#define STRING_CMD_PREPEND_N "Antepostas {1} tarefas." #define STRING_CMD_PREPEND_N "Antepostas {1} tarefas."