[FIX] script todo : une clé i18n dupliquée écrasait un libellé du menu
La section du menu des plugins prenait « Install » pour clé, déjà portée par l'entrée « 📦 Installation » du menu principal. Dans un littéral de dict Python la dernière définition gagne, sans erreur ni avertissement : le menu principal affichait donc « Installer ». La clé de la section est renommée, la première étant en place depuis longtemps. Vérifié : le menu principal retrouve « 📦 Installation », et un balayage des clés ne laisse que trois doublons, tous à valeurs identiques donc sans effet. --- EN --- The plugin menu's section used « Install » as its key, already held by the main menu's « 📦 Installation » entry. In a Python dict literal the last definition wins, with no error and no warning: the main menu therefore showed « Installer ». The section's key is renamed, the first one having been there far longer. Checked: the main menu gets « 📦 Installation » back, and a sweep of the keys leaves only three duplicates, all with identical values and so without effect. Assisted-by: Claude Opus 5
This commit is contained in:
parent
3bd9f1edad
commit
bf114ac182
2 changed files with 4 additions and 4 deletions
|
|
@ -3390,7 +3390,7 @@ class TODO(
|
|||
"Show a plugin detail and its token cost"
|
||||
)
|
||||
},
|
||||
{"section": t("Install")},
|
||||
{"section": t("Install plugins")},
|
||||
{"prompt_description": t("Install the ERPLibre preferred list")},
|
||||
{"prompt_description": t("Install a plugin by name")},
|
||||
{"prompt_description": t("Add a marketplace")},
|
||||
|
|
|
|||
|
|
@ -1234,9 +1234,9 @@ TRANSLATIONS = {
|
|||
"fr": "Afficher le détail d'un plugin et son coût en tokens",
|
||||
"en": "Show a plugin detail and its token cost",
|
||||
},
|
||||
"Install": {
|
||||
"fr": "Installer",
|
||||
"en": "Install",
|
||||
"Install plugins": {
|
||||
"fr": "Installer des plugins",
|
||||
"en": "Install plugins",
|
||||
},
|
||||
"Install the ERPLibre preferred list": {
|
||||
"fr": "Installer la liste préférée d'ERPLibre",
|
||||
|
|
|
|||
Loading…
Reference in a new issue