aboutsummaryrefslogtreecommitdiff
path: root/todo/gui/tasks/dialog.py
diff options
context:
space:
mode:
authorJoris2021-10-16 20:09:55 +0200
committerJoris2021-10-16 20:09:56 +0200
commita54b7776320ef5aa02e6ef7378c2a011dc454885 (patch)
tree0cc69107fc3db626ade1b91e70966f9ecff19678 /todo/gui/tasks/dialog.py
parent9d8b61da195bf8de14159f1222a693d62ceebacd (diff)
downloadtodo-a54b7776320ef5aa02e6ef7378c2a011dc454885.tar.gz
todo-a54b7776320ef5aa02e6ef7378c2a011dc454885.tar.bz2
todo-a54b7776320ef5aa02e6ef7378c2a011dc454885.zip
Introduce due date
Also: - Remove duration, difficulty and priority, - Translate to french.
Diffstat (limited to 'todo/gui/tasks/dialog.py')
-rw-r--r--todo/gui/tasks/dialog.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/todo/gui/tasks/dialog.py b/todo/gui/tasks/dialog.py
index 2bed6af..9cfa2be 100644
--- a/todo/gui/tasks/dialog.py
+++ b/todo/gui/tasks/dialog.py
@@ -14,7 +14,7 @@ def add(parent_widget, status: Status, add_task_signal):
task = todo.service.tasks.create(todo.database.cursor(), status, task_form)
add_task_signal.emit(task, task_form.tags)
- return widget(parent_widget, "Add a task", "add", None, [], on_add)
+ return widget(parent_widget, "Ajouter une tâche", "ajouter", None, [], on_add)
def update(parent_widget, update_task_signal, row: int, task: Task, tags: List[int]):
@@ -22,13 +22,13 @@ def update(parent_widget, update_task_signal, row: int, task: Task, tags: List[i
updated_task = todo.service.tasks.update(todo.database.cursor(), task, tags, task_form)
update_task_signal.emit(row, updated_task, task_form.tags)
- return widget(parent_widget, "Modify a task", "modify", task, tags, on_update)
+ return widget(parent_widget, "Modifier une tâche", "modifier", task, tags, on_update)
def confirm_delete(parent, rows: List[int], on_confirm):
confirm = QtWidgets.QMessageBox.question(
parent,
- "Task deletion",
- "Do you really want to delete the selected tasks ?",
+ "Suppression des tâches",
+ "Voulez-vous vraiment supprimer les tâches selectionnées ?",
QtWidgets.QMessageBox.No | QtWidgets.QMessageBox.Yes,
QtWidgets.QMessageBox.Yes)