Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ i18n!("src/locales", fallback = "en");
struct Args {
#[command(subcommand)]
subcommand: Command,
#[arg(short, long, help = "Turns the debug logging on", global = true)]
#[arg(short, long, help = t!("cli.help.args.debug_logging"), global = true)]
verbose: bool,
// lang is being evaluated manually (without clap)
#[arg(long, help = t!("cli.help.args.lang"), global = true)]
lang: Option<String>,
}

#[derive(Subcommand)]
Expand Down
6 changes: 5 additions & 1 deletion src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@
"exposure": "Steuert den Belichtungsmodus der Kamera",
"info": "Zeigt Informationen über den aktuellen Zustand der Kamera",
"version": "Zeigt die Version des CLI-Tools",
"completions": "Erzeugt Shell-Vervollständigungs-Skripte für das CLI-Tool"
"completions": "Erzeugt Shell-Vervollständigungs-Skripte für das CLI-Tool",
"args": {
"debug_logging": "Das Debug-Logging einschalten",
"lang": "Die Sprache für die aktuelle Kommandoausführung festlegen"
}
}
},
"display": {
Expand Down
6 changes: 5 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@
"exposure": "Controls the exposure-mode of the camera",
"info": "Displays information about the current state of the camera",
"version": "Displays the version of the CLI-tool",
"completions": "Generates shell-completion scripts for the CLI-tool"
"completions": "Generates shell-completion scripts for the CLI-tool",
"args": {
"debug_logging": "Turning the debug logging on",
"lang": "Setting the language for the current command execution"
}
}
},
"display": {
Expand Down
6 changes: 5 additions & 1 deletion src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@
"exposure": "Controla el modo de exposición",
"info": "Muestra información del estado actual",
"version": "Muestra la versión de la herramienta CLI",
"completions": "Genera scripts de autocompletado"
"completions": "Genera scripts de autocompletado",
"args": {
"debug_logging": "Activar el registro de depuración",
"lang": "Configurar el idioma para la ejecución del comando actual"
}
}
},
"display": {
Expand Down
6 changes: 5 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@
"exposure": "Contrôle le mode d’exposition",
"info": "Affiche les informations de la caméra",
"version": "Affiche la version de l’outil CLI",
"completions": "Génère des scripts d’auto-complétion"
"completions": "Génère des scripts d’auto-complétion",
"args": {
"debug_logging": "Activer la journalisation de débogage",
"lang": "Définir la langue pour l’exécution de la commande en cours"
}
}
},
"display": {
Expand Down
6 changes: 5 additions & 1 deletion src/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@
"exposure": "Controlla la modalità esposizione",
"info": "Mostra le informazioni della fotocamera",
"version": "Mostra la versione dello strumento CLI",
"completions": "Genera script di completamento"
"completions": "Genera script di completamento",
"args": {
"debug_logging": "Attivare la registrazione di debug",
"lang": "Impostare la lingua per l’esecuzione del comando corrente"
}
}
},
"display": {
Expand Down
6 changes: 5 additions & 1 deletion src/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@
"exposure": "Pozlama modunu kontrol eder",
"info": "Kameranın mevcut durumunu gösterir",
"version": "CLI aracının sürümünü gösterir",
"completions": "CLI için kabuk tamamlama betikleri oluşturur"
"completions": "CLI için kabuk tamamlama betikleri oluşturur",
"args": {
"debug_logging": "Hata ayıklama günlüğünü açma",
"lang": "Geçerli komut yürütme için dili ayarlama"
}
}
},
"display": {
Expand Down
6 changes: 5 additions & 1 deletion src/locales/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@
"exposure": "Керує режимом експозиції",
"info": "Показує інформацію про стан камери",
"version": "Показує версію CLI",
"completions": "Генерує скрипти автодоповнення"
"completions": "Генерує скрипти автодоповнення",
"args": {
"debug_logging": "Увімкнення журналювання зневадження",
"lang": "Встановлення мови для виконання поточної команди"
}
}
},
"display": {
Expand Down