diff --git a/src/commands/CmdAppend.cpp b/src/commands/CmdAppend.cpp index 893d9a46c..ec60631c4 100644 --- a/src/commands/CmdAppend.cpp +++ b/src/commands/CmdAppend.cpp @@ -41,7 +41,7 @@ CmdAppend::CmdAppend () { _keyword = "append"; _usage = "task append "; - _description = STRING_CMD_APPEND_USAGE; + _description = "Appends text to an existing task description"; _read_only = false; _displays_id = false; _needs_gc = false; @@ -78,7 +78,7 @@ int CmdAppend::execute (std::string&) Task before (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.get ("description")); @@ -88,7 +88,7 @@ int CmdAppend::execute (std::string&) { context.tdb2.modify (task); ++count; - feedback_affected (STRING_CMD_APPEND_TASK, task); + feedback_affected ("Appending to task {1} '{2}'.", task); if (context.verbose ("project")) projectChanges[task.get ("project")] = onProjectChange (task, false); @@ -96,7 +96,7 @@ int CmdAppend::execute (std::string&) if (task.has ("parent")) { 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")) { std::vector siblings = context.tdb2.siblings (task); @@ -105,7 +105,7 @@ int CmdAppend::execute (std::string&) sibling.modify (Task::modAppend, true); context.tdb2.modify (sibling); ++count; - feedback_affected (STRING_CMD_APPEND_TASK_R, sibling); + feedback_affected ("Appending to recurring task {1} '{2}'.", sibling); } // Append to the parent @@ -118,7 +118,7 @@ int CmdAppend::execute (std::string&) } else { - std::cout << STRING_CMD_APPEND_NO << '\n'; + std::cout << "Task not appended.\n"; rc = 1; if (_permission_quit) break; @@ -130,7 +130,7 @@ int CmdAppend::execute (std::string&) if (change.first != "") 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; } diff --git a/src/l10n/deu-DEU.h b/src/l10n/deu-DEU.h index db3510bf1..e4d590782 100644 --- a/src/l10n/deu-DEU.h +++ b/src/l10n/deu-DEU.h @@ -172,15 +172,6 @@ #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_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_1 "Vor {1} Aufgabe vorangestellt." #define STRING_CMD_PREPEND_N "Vor {1} Aufgaben vorangestellt." diff --git a/src/l10n/eng-USA.h b/src/l10n/eng-USA.h index 02dc98f73..a54db6b90 100644 --- a/src/l10n/eng-USA.h +++ b/src/l10n/eng-USA.h @@ -169,15 +169,6 @@ #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_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_1 "Prepended {1} task." #define STRING_CMD_PREPEND_N "Prepended {1} tasks." diff --git a/src/l10n/epo-RUS.h b/src/l10n/epo-RUS.h index 4922ca075..325df46dd 100644 --- a/src/l10n/epo-RUS.h +++ b/src/l10n/epo-RUS.h @@ -172,15 +172,6 @@ #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_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_1 "Predonis al {1} tasko." #define STRING_CMD_PREPEND_N "Predonis {1} taskoj." diff --git a/src/l10n/esp-ESP.h b/src/l10n/esp-ESP.h index b7f1e74bb..a72f29ce0 100644 --- a/src/l10n/esp-ESP.h +++ b/src/l10n/esp-ESP.h @@ -178,15 +178,6 @@ #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_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_1 "Antepuesto texto a {1} tarea." #define STRING_CMD_PREPEND_N "Antepuesto texto a {1} tareas." diff --git a/src/l10n/fra-FRA.h b/src/l10n/fra-FRA.h index 1d25c92b8..f9c096343 100644 --- a/src/l10n/fra-FRA.h +++ b/src/l10n/fra-FRA.h @@ -174,15 +174,6 @@ #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_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_1 "Prepended {1} task." #define STRING_CMD_PREPEND_N "Prepended {1} tasks." diff --git a/src/l10n/ita-ITA.h b/src/l10n/ita-ITA.h index 3d2cc4bf4..1878dc4b4 100644 --- a/src/l10n/ita-ITA.h +++ b/src/l10n/ita-ITA.h @@ -173,15 +173,6 @@ #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_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_1 "Aggiunta al task {1}." #define STRING_CMD_PREPEND_N "Aggiunte ai task {1}." diff --git a/src/l10n/jpn-JPN.h b/src/l10n/jpn-JPN.h index 245ba8287..7e1bcd54f 100644 --- a/src/l10n/jpn-JPN.h +++ b/src/l10n/jpn-JPN.h @@ -174,15 +174,6 @@ #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_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_1 "Prepended {1} task." #define STRING_CMD_PREPEND_N "Prepended {1} tasks." diff --git a/src/l10n/pol-POL.h b/src/l10n/pol-POL.h index 9020d4e5c..03e89e0bf 100644 --- a/src/l10n/pol-POL.h +++ b/src/l10n/pol-POL.h @@ -174,15 +174,6 @@ #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_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_1 "Dodano ciąg do opisu {1} zadania." #define STRING_CMD_PREPEND_N "Dodano ciąg do opisu {1} zadań." diff --git a/src/l10n/por-PRT.h b/src/l10n/por-PRT.h index 1427fbdb7..bf92a16ff 100644 --- a/src/l10n/por-PRT.h +++ b/src/l10n/por-PRT.h @@ -174,15 +174,6 @@ #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_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_1 "Anteposta {1} tarefa." #define STRING_CMD_PREPEND_N "Antepostas {1} tarefas."