From 7c1f8c4e71891d7970dbd6ded2e8abfe1b186a10 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Fri, 25 Sep 2026 01:41:45 -0400 Subject: [PATCH] =?UTF-8?q?[IMP]=20todo:=20icons=20on=20the=20language=20c?= =?UTF-8?q?hooser,=20accent=20on=20Fran=C3=A7ais?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The language chooser was the only TODO screen without icons, and it spelled Francais without its accent. The first-launch prompt and the one reached from Configuration now open on a globe and mark each language with its flag; the label reads Français in both. Checked: both prompts displayed; test_todo and i18n tests, 108, pass. --- FR --- [IMP] todo : icônes au choix de la langue, accent sur Français Le choix de la langue était le seul écran de TODO sans icône, et il écrivait Francais sans accent. L'invite du premier lancement et celle de Configuration s'ouvrent désormais sur un globe et marquent chaque langue de son drapeau ; le libellé se lit Français dans les deux. Vérifié : les deux invites affichées ; test_todo et tests i18n, 108, passent. Assisted-by: Claude Opus 5.5 --- script/todo/todo.py | 12 ++++++------ script/todo/todo_i18n.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/script/todo/todo.py b/script/todo/todo.py index dd19a01..a948d54 100755 --- a/script/todo/todo.py +++ b/script/todo/todo.py @@ -215,9 +215,9 @@ class TODO( def _ask_language(self): if not lang_is_configured(): print() - print("Choisir la langue / Choose language:") - print("[1] Francais") - print("[2] English") + print("🌍 Choisir la langue / Choose language:") + print("[1] 🇫🇷 Français") + print("[2] 🇬🇧 English") choice = "" while choice not in ("1", "2"): choice = input("Select / Choisir : ").strip() @@ -228,9 +228,9 @@ class TODO( def _change_language(self): print() - print(t("Choose language / Choisir la langue") + ":") - print(f"[1] {t('French')}") - print(f"[2] {t('English')}") + print("🌍 " + t("Choose language / Choisir la langue") + ":") + print(f"[1] 🇫🇷 {t('French')}") + print(f"[2] 🇬🇧 {t('English')}") print(f"[0] {t('Back')}") choice = "" while choice not in ("0", "1", "2"): diff --git a/script/todo/todo_i18n.py b/script/todo/todo_i18n.py index 3e91dbf..23c0851 100644 --- a/script/todo/todo_i18n.py +++ b/script/todo/todo_i18n.py @@ -1192,7 +1192,7 @@ TRANSLATIONS = { "en": "Choose language / Choisir la langue", }, "French": { - "fr": "Francais", + "fr": "Français", "en": "French", }, "English": {