l10n: Eliminated STRING_CMD_PREPEND_*

This commit is contained in:
Paul Beckingham 2018-01-21 11:13:13 -05:00
parent fbcb2b6c65
commit c937f18ab8
10 changed files with 7 additions and 89 deletions

View file

@ -31,7 +31,6 @@
#include <Filter.h>
#include <shared.h>
#include <format.h>
#include <i18n.h>
#include <main.h>
extern Context context;
@ -41,7 +40,7 @@ CmdPrepend::CmdPrepend ()
{
_keyword = "prepend";
_usage = "task <filter> prepend <mods>";
_description = STRING_CMD_PREPEND_USAGE;
_description = "Prepends text to an existing task description";
_read_only = false;
_displays_id = false;
_needs_gc = false;
@ -78,7 +77,7 @@ int CmdPrepend::execute (std::string&)
Task before (task);
// Prepend to the specified task.
std::string question = format (STRING_CMD_PREPEND_CONFIRM,
std::string question = format ("Prepend to task {1} '{2}'?",
task.identifier (true),
task.get ("description"));
@ -88,7 +87,7 @@ int CmdPrepend::execute (std::string&)
{
context.tdb2.modify (task);
++count;
feedback_affected (STRING_CMD_PREPEND_TASK, task);
feedback_affected ("Prepending to task {1} '{2}'.", task);
if (context.verbose ("project"))
projectChanges[task.get ("project")] = onProjectChange (task, false);
@ -96,7 +95,7 @@ int CmdPrepend::execute (std::string&)
if (task.has ("parent"))
{
if ((context.config.get ("recurrence.confirmation") == "prompt"
&& confirm (STRING_CMD_PREPEND_CONFIRM_R)) ||
&& confirm ("This is a recurring task. Do you want to prepend to all pending recurrences of this same task?")) ||
context.config.getBoolean ("recurrence.confirmation"))
{
std::vector <Task> siblings = context.tdb2.siblings (task);
@ -105,7 +104,7 @@ int CmdPrepend::execute (std::string&)
sibling.modify (Task::modPrepend, true);
context.tdb2.modify (sibling);
++count;
feedback_affected (STRING_CMD_PREPEND_TASK_R, sibling);
feedback_affected ("Prepending to recurring task {1} '{2}'.", sibling);
}
// Prepend to the parent
@ -118,7 +117,7 @@ int CmdPrepend::execute (std::string&)
}
else
{
std::cout << STRING_CMD_PREPEND_NO << '\n';
std::cout << "Task not prepended.\n";
rc = 1;
if (_permission_quit)
break;
@ -130,7 +129,7 @@ int CmdPrepend::execute (std::string&)
if (change.first != "")
context.footnote (change.second);
feedback_affected (count == 1 ? STRING_CMD_PREPEND_1 : STRING_CMD_PREPEND_N, count);
feedback_affected (count == 1 ? "Prepended {1} task." : "Prepended {1} tasks.", count);
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_VALID "You must specify an attribute or UDA."
#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."
#define STRING_CMD_PREPEND_TASK "Stelle Aufgabe {1} '{2}' voran."
#define STRING_CMD_PREPEND_TASK_R "Stelle wiederholender Aufgabe {1} '{2}' voran."
#define STRING_CMD_PREPEND_CONFIRM_R "Dies ist eine wiederholende Aufgabe. Möchten Sie vor allen offenen Wiederholungen dieser Aufgabe anfügen?"
#define STRING_CMD_PREPEND_CONFIRM "Vor Aufgabe {1} '{2}' anfügen?"
#define STRING_CMD_PREPEND_NO "Nicht vor Aufgabe angefügt."
#define STRING_CMD_IMPORT_USAGE "Importiert eine JSON-Datei"
#define STRING_CMD_IMPORT_SUMMARY "{1} Aufgabe importiert."
#define STRING_CMD_IMPORT_FILE "Importiere '{1}'"

View file

@ -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_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."
#define STRING_CMD_PREPEND_TASK "Prepending to task {1} '{2}'."
#define STRING_CMD_PREPEND_TASK_R "Prepending to recurring task {1} '{2}'."
#define STRING_CMD_PREPEND_CONFIRM_R "This is a recurring task. Do you want to prepend to all pending recurrences of this same task?"
#define STRING_CMD_PREPEND_CONFIRM "Prepend to task {1} '{2}'?"
#define STRING_CMD_PREPEND_NO "Task not prepended."
#define STRING_CMD_IMPORT_USAGE "Imports JSON files"
#define STRING_CMD_IMPORT_SUMMARY "Imported {1} tasks."
#define STRING_CMD_IMPORT_FILE "Importing '{1}'"

View file

@ -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_PREPEND_USAGE "Aldonas tekston antaŭ task-priskribo"
#define STRING_CMD_PREPEND_1 "Predonis al {1} tasko."
#define STRING_CMD_PREPEND_N "Predonis {1} taskoj."
#define STRING_CMD_PREPEND_TASK "Predonanta al tasko {1} '{2}'."
#define STRING_CMD_PREPEND_TASK_R "Predonanta al reokazanta tasko {1} '{2}'."
#define STRING_CMD_PREPEND_CONFIRM_R "Tio estas reokazanta tasko. Ĉu vi volas predoni al ĉia pendanta okazaĵo de ĉi tiu tasko?"
#define STRING_CMD_PREPEND_CONFIRM "Predonis al taskon {1} '{2}'?"
#define STRING_CMD_PREPEND_NO "Ne predonis al tasko."
#define STRING_CMD_IMPORT_USAGE "Importas JSON-dosierojn"
#define STRING_CMD_IMPORT_SUMMARY "Importis {1} taskojn."
#define STRING_CMD_IMPORT_FILE "Importanta '{1}'"

View file

@ -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_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."
#define STRING_CMD_PREPEND_TASK "Anteponiendo texto a la tarea {1} '{2}'."
#define STRING_CMD_PREPEND_TASK_R "Antepuesto texto a la tarea recurrente {1} '{2}'."
#define STRING_CMD_PREPEND_CONFIRM_R "Esta es una tarea recurrente. ¿Quiere anteponer texto a todas las recurrencias pendientes de esta misma tarea?"
#define STRING_CMD_PREPEND_CONFIRM "¿Anteponer texto a la tarea {1} '{2}'?"
#define STRING_CMD_PREPEND_NO "Texto no antepuesto."
#define STRING_CMD_IMPORT_USAGE "Importa archivos JSON"
#define STRING_CMD_IMPORT_SUMMARY "Importadas {1} tareas."
#define STRING_CMD_IMPORT_FILE "Importando '{1}'"

View file

@ -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_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."
#define STRING_CMD_PREPEND_TASK "Prepending to task {1} '{2}'."
#define STRING_CMD_PREPEND_TASK_R "Prepending to recurring task {1} '{2}'."
#define STRING_CMD_PREPEND_CONFIRM_R "This is a recurring task. Do you want to prepend to all pending recurrences of this same task?"
#define STRING_CMD_PREPEND_CONFIRM "Prepend to task {1} '{2}'?"
#define STRING_CMD_PREPEND_NO "Tâche not prepended."
#define STRING_CMD_IMPORT_USAGE "Imports JSON files"
#define STRING_CMD_IMPORT_SUMMARY "Imported {1} tasks."
#define STRING_CMD_IMPORT_FILE "Importing '{1}'"

View file

@ -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_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}."
#define STRING_CMD_PREPEND_TASK "Aggiunta al task {1} '{2}'."
#define STRING_CMD_PREPEND_TASK_R "Aggiunta al task periodico {1} '{2}'."
#define STRING_CMD_PREPEND_CONFIRM_R "Questo è un task periodico. Aggiungere il testo all'inizio della descrizione di tutti i task associati?"
#define STRING_CMD_PREPEND_CONFIRM "Aggiungere all'inizio della descrizione del task {1} '{2}'?"
#define STRING_CMD_PREPEND_NO "Aggiunta non effettuata."
#define STRING_CMD_IMPORT_USAGE "Importa file JSON"
#define STRING_CMD_IMPORT_SUMMARY "Importati {1} task."
#define STRING_CMD_IMPORT_FILE "Importazione di '{1}'"

View file

@ -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_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."
#define STRING_CMD_PREPEND_TASK "Prepending to task {1} '{2}'."
#define STRING_CMD_PREPEND_TASK_R "Prepending to recurring task {1} '{2}'."
#define STRING_CMD_PREPEND_CONFIRM_R "This is a recurring task. Do you want to prepend to all pending recurrences of this same task?"
#define STRING_CMD_PREPEND_CONFIRM "Prepend to task {1} '{2}'?"
#define STRING_CMD_PREPEND_NO "Task not prepended."
#define STRING_CMD_IMPORT_USAGE "JSON ファイルをインポート"
#define STRING_CMD_IMPORT_SUMMARY "{1} task をインポートしました。"
#define STRING_CMD_IMPORT_FILE "'{1}' をインポート中"

View file

@ -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_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ń."
#define STRING_CMD_PREPEND_TASK "Dodawanie ciągu do opisu zadania {1} '{2}'."
#define STRING_CMD_PREPEND_TASK_R "Dodawanie ciągu do opisu zadania cyklicznego {1} '{2}'."
#define STRING_CMD_PREPEND_CONFIRM_R "To zadanie jest cykliczne. Czy chcesz dodać ciąg do opisu kolejnych zadań w cyklu?"
#define STRING_CMD_PREPEND_CONFIRM "Dodać ciąg do opisu zadania {1} '{2}'?"
#define STRING_CMD_PREPEND_NO "Nie dodano ciągu do opisu."
#define STRING_CMD_IMPORT_USAGE "Importuje pliki JSON"
#define STRING_CMD_IMPORT_SUMMARY "Zaimportowano {1} zadań."
#define STRING_CMD_IMPORT_FILE "Importowanie '{1}'"

View file

@ -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_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."
#define STRING_CMD_PREPEND_TASK "Antepor à tarefa {1} '{2}'."
#define STRING_CMD_PREPEND_TASK_R "Antepor à tarefa recorrente {1} '{2}'."
#define STRING_CMD_PREPEND_CONFIRM_R "Esta é uma tarefa recorrente. Deseja antepor a todas as ocorrências pendentes desta tarefa?"
#define STRING_CMD_PREPEND_CONFIRM "Antepor à tarefa {1} '{2}'?"
#define STRING_CMD_PREPEND_NO "Tarefa não anteposta."
#define STRING_CMD_IMPORT_USAGE "Importa ficheiros JSON"
#define STRING_CMD_IMPORT_SUMMARY "Importadas {1} tarefas."
#define STRING_CMD_IMPORT_FILE "A importar '{1}'"