From 4ee72d560ae82006d4f05fe817ac96433cdfb22f Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Fri, 16 Jan 2026 17:13:33 -0700 Subject: [PATCH] fix missing about text --- core/locales/i18n.yaml | 28 ++++++++++++++++++++++++++++ core/src/diagnostic.rs | 8 ++++---- core/src/lib.rs | 12 +++++++++--- core/src/registry/admin.rs | 1 + core/src/setup.rs | 4 +++- core/src/tunnel/auth.rs | 8 ++++---- core/src/tunnel/web.rs | 2 +- 7 files changed, 50 insertions(+), 13 deletions(-) diff --git a/core/locales/i18n.yaml b/core/locales/i18n.yaml index eed8a2701..7bad1b9d8 100644 --- a/core/locales/i18n.yaml +++ b/core/locales/i18n.yaml @@ -2919,6 +2919,13 @@ about.commands-host-system-ui: fr_FR: "Commandes pour modifier l'hôte pour l'interface système" pl_PL: "Polecenia modyfikacji hosta dla interfejsu systemowego" +about.commands-init: + en_US: "Commands for initialization" + de_DE: "Befehle zur Initialisierung" + es_ES: "Comandos de inicialización" + fr_FR: "Commandes d'initialisation" + pl_PL: "Polecenia inicjalizacji" + about.commands-index-add-get-packages: en_US: "Commands to index, add, or get packages" de_DE: "Befehle zum Indizieren, Hinzufügen oder Abrufen von Paketen" @@ -2933,6 +2940,13 @@ about.commands-interact-with-db-dump-apply: fr_FR: "Commandes pour interagir avec la base de données, comme dump et apply" pl_PL: "Polecenia interakcji z bazą danych, np. dump i apply" +about.commands-kiosk: + en_US: "Commands for kiosk mode" + de_DE: "Befehle für den Kioskmodus" + es_ES: "Comandos para el modo kiosco" + fr_FR: "Commandes pour le mode kiosque" + pl_PL: "Polecenia trybu kiosku" + about.commands-notifications: en_US: "Create, delete, or list notifications" de_DE: "Benachrichtigungen erstellen, löschen oder auflisten" @@ -2989,6 +3003,13 @@ about.commands-server: fr_FR: "Commandes liées au serveur, comme redémarrer, mettre à jour et arrêter" pl_PL: "Polecenia związane z serwerem, np. restart, aktualizacja i zamknięcie" +about.commands-setup: + en_US: "Commands related to the initial setup" + de_DE: "Befehle zur Ersteinrichtung" + es_ES: "Comandos relacionados con la configuración inicial" + fr_FR: "Commandes liées à la configuration initiale" + pl_PL: "Polecenia związane z początkową konfiguracją" + about.commands-ssh-keys: en_US: "Commands for interacting with ssh keys i.e. add, delete, list" de_DE: "Befehle zur Interaktion mit SSH-Schlüsseln, z.B. hinzufügen, löschen, auflisten" @@ -3220,6 +3241,13 @@ about.edit-s9pk-manifest: fr_FR: "Modifier le manifeste s9pk" pl_PL: "Edytuj manifest s9pk" +about.edit-signer: + en_US: "Edit signer information" + de_DE: "Unterzeichner-Informationen bearbeiten" + es_ES: "Editar información del firmante" + fr_FR: "Modifier les informations du signataire" + pl_PL: "Edytuj informacje o podpisującym" + about.enable-disable-wifi: en_US: "Enable or disable wifi" de_DE: "WLAN aktivieren oder deaktivieren" diff --git a/core/src/diagnostic.rs b/core/src/diagnostic.rs index e9baaf386..ba58f2354 100644 --- a/core/src/diagnostic.rs +++ b/core/src/diagnostic.rs @@ -96,10 +96,10 @@ pub fn disk() -> ParentHandler { .subcommand( "repair", CallRemoteHandler::::new( - from_fn_async(|_: RpcContext| repair()) - .no_display() - .with_about("about.repair-disk-corruption"), - ), + from_fn_async(|_: RpcContext| repair()).no_display(), + ) + .no_display() + .with_about("about.repair-disk-corruption"), ) } diff --git a/core/src/lib.rs b/core/src/lib.rs index 80cdca71b..71ca49248 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -232,10 +232,16 @@ pub fn main_api() -> ParentHandler { "diagnostic", diagnostic::diagnostic::().with_about("about.commands-diagnostic"), ) - .subcommand("init", init::init_api::()) - .subcommand("setup", setup::setup::()); + .subcommand( + "init", + init::init_api::().with_about("about.commands-init"), + ) + .subcommand( + "setup", + setup::setup::().with_about("about.commands-setup"), + ); if &*PLATFORM != "raspberrypi" { - api = api.subcommand("kiosk", kiosk::()); + api = api.subcommand("kiosk", kiosk::().with_about("about.commands-kiosk")); } #[cfg(target_os = "linux")] { diff --git a/core/src/registry/admin.rs b/core/src/registry/admin.rs index c223ef0ca..a14603fb0 100644 --- a/core/src/registry/admin.rs +++ b/core/src/registry/admin.rs @@ -80,6 +80,7 @@ fn signers_api() -> ParentHandler { from_fn_async(edit_signer) .with_metadata("admin", Value::Bool(true)) .no_display() + .with_about("about.edit-signer") .with_call_remote::(), ) } diff --git a/core/src/setup.rs b/core/src/setup.rs index 076a3aefa..51e945a00 100644 --- a/core/src/setup.rs +++ b/core/src/setup.rs @@ -70,7 +70,9 @@ pub fn setup() -> ParentHandler { .subcommand("logs", crate::system::logs::()) .subcommand( "logs", - from_fn_async(crate::logs::cli_logs::).no_display(), + from_fn_async(crate::logs::cli_logs::) + .no_display() + .with_about("about.display-os-logs"), ) .subcommand("restart", from_fn_async(restart).no_cli()) } diff --git a/core/src/tunnel/auth.rs b/core/src/tunnel/auth.rs index dddbf0d95..758617686 100644 --- a/core/src/tunnel/auth.rs +++ b/core/src/tunnel/auth.rs @@ -129,14 +129,14 @@ pub fn auth_api() -> ParentHandler { .subcommand( "set-password", from_fn_async(set_password_cli) - .with_about("about.set-user-interface-password") - .no_display(), + .no_display() + .with_about("about.set-user-interface-password"), ) .subcommand( "reset-password", from_fn_async(reset_password) - .with_about("about.reset-user-interface-password") - .no_display(), + .no_display() + .with_about("about.reset-user-interface-password"), ) .subcommand( "key", diff --git a/core/src/tunnel/web.rs b/core/src/tunnel/web.rs index b6ecbc5d5..c3af02d51 100644 --- a/core/src/tunnel/web.rs +++ b/core/src/tunnel/web.rs @@ -156,8 +156,8 @@ pub fn web_api() -> ParentHandler { .subcommand( "enable", from_fn_async(enable_web) - .with_about("about.enable-webserver") .no_display() + .with_about("about.enable-webserver") .with_call_remote::(), ) .subcommand(