[IMP] todo: icons on the language chooser, accent on Français

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
This commit is contained in:
Mathieu Benoit 2026-09-25 01:41:45 -04:00
parent 087445c578
commit 7c1f8c4e71
2 changed files with 7 additions and 7 deletions

View file

@ -215,9 +215,9 @@ class TODO(
def _ask_language(self): def _ask_language(self):
if not lang_is_configured(): if not lang_is_configured():
print() print()
print("Choisir la langue / Choose language:") print("🌍 Choisir la langue / Choose language:")
print("[1] Francais") print("[1] 🇫🇷 Français")
print("[2] English") print("[2] 🇬🇧 English")
choice = "" choice = ""
while choice not in ("1", "2"): while choice not in ("1", "2"):
choice = input("Select / Choisir : ").strip() choice = input("Select / Choisir : ").strip()
@ -228,9 +228,9 @@ class TODO(
def _change_language(self): def _change_language(self):
print() print()
print(t("Choose language / Choisir la langue") + ":") print("🌍 " + t("Choose language / Choisir la langue") + ":")
print(f"[1] {t('French')}") print(f"[1] 🇫🇷 {t('French')}")
print(f"[2] {t('English')}") print(f"[2] 🇬🇧 {t('English')}")
print(f"[0] {t('Back')}") print(f"[0] {t('Back')}")
choice = "" choice = ""
while choice not in ("0", "1", "2"): while choice not in ("0", "1", "2"):

View file

@ -1192,7 +1192,7 @@ TRANSLATIONS = {
"en": "Choose language / Choisir la langue", "en": "Choose language / Choisir la langue",
}, },
"French": { "French": {
"fr": "Francais", "fr": "Français",
"en": "French", "en": "French",
}, },
"English": { "English": {