l10n: Eliminated STRING_CMD_PURGE_*

This commit is contained in:
Paul Beckingham 2018-01-20 21:29:51 -05:00
parent e00f106012
commit 360b1d81d1
10 changed files with 6 additions and 78 deletions

View file

@ -40,7 +40,7 @@ CmdPurge::CmdPurge ()
{
_keyword = "purge";
_usage = "task <filter> purge";
_description = STRING_CMD_PURGE_USAGE;
_description = "Removes the specified tasks from the data files. Causes permanent loss of data.";
_read_only = false;
_displays_id = false;
_needs_confirm = true;
@ -104,7 +104,7 @@ void CmdPurge::handleChildren (Task& task, int& count)
{
if (child.getStatus () != Task::deleted)
// In case any child task is not deleted, bail out
throw format (STRING_CMD_PURGE_NDEL_CHILD,
throw format ("Task '{1}' is a recurrence template. Its child task {2} must be deleted before it can be purged.",
task.get ("description"),
child.identifier (true));
else
@ -117,7 +117,7 @@ void CmdPurge::handleChildren (Task& task, int& count)
return;
// Ask for confirmation to purge them, if needed
std::string question = format (STRING_CMD_PURGE_CONFIRM_R,
std::string question = format ("Task '{1}' is a recurrence template. All its {2} deleted children tasks will be purged as well. Continue?",
task.get ("description"),
children.size ());
@ -129,7 +129,7 @@ void CmdPurge::handleChildren (Task& task, int& count)
purgeTask (child, count);
}
else
throw std::string (STRING_CMD_PURGE_ABRT);
throw std::string ("Purge operation aborted.");
}
@ -160,7 +160,7 @@ int CmdPurge::execute (std::string&)
if (task.getStatus () == Task::deleted)
{
std::string question;
question = format (STRING_CMD_PURGE_CONFIRM,
question = format ("Permanently remove task {1} '{2}'?",
task.identifier (true),
task.get ("description"));
@ -169,7 +169,7 @@ int CmdPurge::execute (std::string&)
}
}
feedback_affected (count == 1 ? STRING_CMD_PURGE_1 : STRING_CMD_PURGE_N, count);
feedback_affected (count == 1 ? "Purged {1} task." : "Purged {1} tasks.", count);
return rc;
}

View file

@ -172,14 +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_PURGE_USAGE "Removes the specified tasks from the data files. Causes permanent loss of data."
#define STRING_CMD_PURGE_ABRT "Purge operation aborted."
#define STRING_CMD_PURGE_1 "Purged {1} task."
#define STRING_CMD_PURGE_N "Purged {1} tasks."
#define STRING_CMD_PURGE_CONFIRM "Permanently remove task {1} '{2}'?"
#define STRING_CMD_PURGE_CONFIRM_R "Task '{1}' is a recurrence template. All its {2} deleted children tasks will be purged as well. Continue?"
#define STRING_CMD_PURGE_NDEL_CHILD "Task '{1}' is a recurrence template. Its child task {2} must be deleted before it can be purged."
#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."

View file

@ -169,14 +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_PURGE_USAGE "Removes the specified tasks from the data files. Causes permanent loss of data."
#define STRING_CMD_PURGE_ABRT "Purge operation aborted."
#define STRING_CMD_PURGE_1 "Purged {1} task."
#define STRING_CMD_PURGE_N "Purged {1} tasks."
#define STRING_CMD_PURGE_CONFIRM "Permanently remove task {1} '{2}'?"
#define STRING_CMD_PURGE_CONFIRM_R "Task '{1}' is a recurrence template. All its {2} deleted children tasks will be purged as well. Continue?"
#define STRING_CMD_PURGE_NDEL_CHILD "Task '{1}' is a recurrence template. Its child task {2} must be deleted before it can be purged."
#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."

View file

@ -172,14 +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_PURGE_USAGE "Removes the specified tasks from the data files. Causes permanent loss of data."
#define STRING_CMD_PURGE_ABRT "Purge operation aborted."
#define STRING_CMD_PURGE_1 "Purged {1} task."
#define STRING_CMD_PURGE_N "Purged {1} tasks."
#define STRING_CMD_PURGE_CONFIRM "Permanently remove task {1} '{2}'?"
#define STRING_CMD_PURGE_CONFIRM_R "Task '{1}' is a recurrence template. All its {2} deleted children tasks will be purged as well. Continue?"
#define STRING_CMD_PURGE_NDEL_CHILD "Task '{1}' is a recurrence template. Its child task {2} must be deleted before it can be purged."
#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."

View file

@ -178,14 +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_PURGE_USAGE "Removes the specified tasks from the data files. Causes permanent loss of data."
#define STRING_CMD_PURGE_ABRT "Purge operation aborted."
#define STRING_CMD_PURGE_1 "Purged {1} task."
#define STRING_CMD_PURGE_N "Purged {1} tasks."
#define STRING_CMD_PURGE_CONFIRM "Permanently remove task {1} '{2}'?"
#define STRING_CMD_PURGE_CONFIRM_R "Task '{1}' is a recurrence template. All its {2} deleted children tasks will be purged as well. Continue?"
#define STRING_CMD_PURGE_NDEL_CHILD "Task '{1}' is a recurrence template. Its child task {2} must be deleted before it can be purged."
#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."

View file

@ -174,14 +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_PURGE_USAGE "Removes the specified tasks from the data files. Causes permanent loss of data."
#define STRING_CMD_PURGE_ABRT "Purge operation aborted."
#define STRING_CMD_PURGE_1 "Purged {1} task."
#define STRING_CMD_PURGE_N "Purged {1} tasks."
#define STRING_CMD_PURGE_CONFIRM "Permanently remove task {1} '{2}'?"
#define STRING_CMD_PURGE_CONFIRM_R "Task '{1}' is a recurrence template. All its {2} deleted children tasks will be purged as well. Continue?"
#define STRING_CMD_PURGE_NDEL_CHILD "Task '{1}' is a recurrence template. Its child task {2} must be deleted before it can be purged."
#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."

View file

@ -173,14 +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_PURGE_USAGE "Removes the specified tasks from the data files. Causes permanent loss of data."
#define STRING_CMD_PURGE_ABRT "Purge operation aborted."
#define STRING_CMD_PURGE_1 "Purged {1} task."
#define STRING_CMD_PURGE_N "Purged {1} tasks."
#define STRING_CMD_PURGE_CONFIRM "Permanently remove task {1} '{2}'?"
#define STRING_CMD_PURGE_CONFIRM_R "Task '{1}' is a recurrence template. All its {2} deleted children tasks will be purged as well. Continue?"
#define STRING_CMD_PURGE_NDEL_CHILD "Task '{1}' is a recurrence template. Its child task {2} must be deleted before it can be purged."
#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}."

View file

@ -174,14 +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_PURGE_USAGE "Removes the specified tasks from the data files. Causes permanent loss of data."
#define STRING_CMD_PURGE_ABRT "Purge operation aborted."
#define STRING_CMD_PURGE_1 "Purged {1} task."
#define STRING_CMD_PURGE_N "Purged {1} tasks."
#define STRING_CMD_PURGE_CONFIRM "Permanently remove task {1} '{2}'?"
#define STRING_CMD_PURGE_CONFIRM_R "Task '{1}' is a recurrence template. All its {2} deleted children tasks will be purged as well. Continue?"
#define STRING_CMD_PURGE_NDEL_CHILD "Task '{1}' is a recurrence template. Its child task {2} must be deleted before it can be purged."
#define STRING_CMD_APPEND_USAGE "存在する task 説明文にテキストを追加"
#define STRING_CMD_APPEND_1 "{1} タスク を追加。"
#define STRING_CMD_APPEND_N "{1} タスク を追加。"

View file

@ -174,14 +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_PURGE_USAGE "Removes the specified tasks from the data files. Causes permanent loss of data."
#define STRING_CMD_PURGE_ABRT "Purge operation aborted."
#define STRING_CMD_PURGE_1 "Purged {1} task."
#define STRING_CMD_PURGE_N "Purged {1} tasks."
#define STRING_CMD_PURGE_CONFIRM "Permanently remove task {1} '{2}'?"
#define STRING_CMD_PURGE_CONFIRM_R "Task '{1}' is a recurrence template. All its {2} deleted children tasks will be purged as well. Continue?"
#define STRING_CMD_PURGE_NDEL_CHILD "Task '{1}' is a recurrence template. Its child task {2} must be deleted before it can be purged."
#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ń"

View file

@ -174,14 +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_PURGE_USAGE "Removes the specified tasks from the data files. Causes permanent loss of data."
#define STRING_CMD_PURGE_ABRT "Purge operation aborted."
#define STRING_CMD_PURGE_1 "Purged {1} task."
#define STRING_CMD_PURGE_N "Purged {1} tasks."
#define STRING_CMD_PURGE_CONFIRM "Permanently remove task {1} '{2}'?"
#define STRING_CMD_PURGE_CONFIRM_R "Task '{1}' is a recurrence template. All its {2} deleted children tasks will be purged as well. Continue?"
#define STRING_CMD_PURGE_NDEL_CHILD "Task '{1}' is a recurrence template. Its child task {2} must be deleted before it can be purged."
#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."