From 034d40d403b2a3d1156abf9e3582958617238b19 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Fri, 25 Sep 2026 01:41:48 -0400 Subject: [PATCH] [IMP] todo menus: language only in Configuration, Fork moved there MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Execute carried a Preferences section whose one entry, the language, is already Configuration's first item: two places for one setting. It is removed, with its two unused translations. Fork, which opens a second TODO, leaves the main menu for Configuration; the main menu now numbers Telemetry 4 and Configuration 5, and Reset all preferences becomes 6. Checked: Configuration displayed with Fork at 5; 108 tests pass. --- FR --- [IMP] menus todo : langue dans Configuration seule, Fork y déménage Execute portait une section Préférences dont la seule entrée, la langue, est déjà la première de Configuration : deux endroits pour un réglage. Elle part, avec ses deux traductions devenues inutiles. Fork, qui ouvre un second TODO, quitte le menu principal pour Configuration ; le menu principal numérote désormais Télémétrie 4 et Configuration 5, et la réinitialisation devient 6. Vérifié : Configuration affichée avec Fork en 5 ; 108 tests passent. Assisted-by: Claude Opus 5.5 --- script/todo/todo.py | 26 ++++++++------------------ script/todo/todo_i18n.py | 8 -------- 2 files changed, 8 insertions(+), 26 deletions(-) diff --git a/script/todo/todo.py b/script/todo/todo.py index a948d54..9ecb717 100755 --- a/script/todo/todo.py +++ b/script/todo/todo.py @@ -253,9 +253,8 @@ class TODO( [1] {t("Execute")} [2] {t("Install")} [3] {t("Assistant")} -[4] {t("Fork - Open TODO in a new tab")} -[5] {t("Navigation telemetry (TUI)")} -[6] {t("Configuration")} +[4] {t("Navigation telemetry (TUI)")} +[5] {t("Configuration")} [0] 🚪 {t("Quit")} """ while True: @@ -281,15 +280,8 @@ class TODO( elif status == "3": self.prompt_assistant() elif status == "4": - # cmd = ( - # f"gnome-terminal --tab -- bash -c 'source" - # f" ./{VENV_ERPLIBRE}/bin/activate;make todo'" - # ) - cmd = "make todo" - self.execute.exec_command_live(cmd, source_erplibre=True) - elif status == "5": self._todo_telemetry_tui() - elif status == "6": + elif status == "5": self.prompt_configuration() # elif status == "3" or status == "install": # print("install") @@ -346,9 +338,6 @@ class TODO( [13] {t("Deploy - Deploy ERPLibre locally")} [14] {t("Network - Network tools")} [15] {t("Security - Dependency security audit")} - -── {t("Preferences")} ── -[16] {t("Language - Change language / Changer la langue")} [0] {t("Back")} """ while True: @@ -416,10 +405,6 @@ class TODO( status = self.prompt_execute_security() if status is not False: return - elif status == "16": - status = self._change_language() - if status is not False: - return else: print(t("Command not found !")) @@ -869,6 +854,7 @@ class TODO( f"({self._pref_label('migration_ui')})" ) }, + {"prompt_description": t("Fork - Open TODO in a new tab")}, {"section": t("Maintenance")}, {"prompt_description": t("Reset all preferences")}, ] @@ -885,6 +871,10 @@ class TODO( elif status == "4": self._pref_edit("migration_ui") elif status == "5": + self.execute.exec_command_live( + "make todo", source_erplibre=True + ) + elif status == "6": n = todo_prefs.reset() print(f"✅ {t('Preferences reset')} ({n})") else: diff --git a/script/todo/todo_i18n.py b/script/todo/todo_i18n.py index 23c0851..886ebdc 100644 --- a/script/todo/todo_i18n.py +++ b/script/todo/todo_i18n.py @@ -100,10 +100,6 @@ TRANSLATIONS = { "fr": "🪙 RTK - Proxy CLI pour réduire la consommation de tokens LLM", "en": "🪙 RTK - CLI proxy to reduce LLM token consumption", }, - "Language - Change language / Changer la langue": { - "fr": "🌍 Langue - Changer la langue / Change language", - "en": "🌍 Language - Change language / Changer la langue", - }, # Deploy section "Deploy - Deploy ERPLibre locally": { "fr": "🚀 Déploiement - Déployer ERPLibre localement", @@ -185,10 +181,6 @@ TRANSLATIONS = { "fr": "🌐 Déploiement, réseau & sécurité", "en": "🌐 Deployment, network & security", }, - "Preferences": { - "fr": "🎨 Préférences", - "en": "🎨 Preferences", - }, "Deployment": { "fr": "🚀 Déploiement", "en": "🚀 Deployment",