1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #8099 from sylvestre/l10n-true

l10n: port true to translation + add french
This commit is contained in:
Daniel Hofstetter 2025-06-08 16:16:01 +02:00 committed by GitHub
commit 69fa206fb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 2 deletions

View file

@ -3,3 +3,6 @@ true-about = Returns true, a successful exit status.
Immediately returns with the exit status 0, except when invoked with one of the recognized Immediately returns with the exit status 0, except when invoked with one of the recognized
options. In those cases it will try to write the help or version text. Any IO error during this options. In those cases it will try to write the help or version text. Any IO error during this
operation causes the program to return 1 instead. operation causes the program to return 1 instead.
true-help-text = Print help information
true-version-text = Print version information

View file

@ -0,0 +1,8 @@
true-about = Renvoie true, un code de sortie indiquant le succès.
Retourne immédiatement avec le code de sortie 0, sauf si l'une des options reconnues est utilisée.
Dans ce cas, il essaiera d'afficher l'aide ou la version. Une erreur d'entrée/sortie pendant cette
opération entraîne un retour avec le code de sortie 1.
true-help-text = Afficher l'aide
true-version-text = Afficher les informations de version

View file

@ -49,13 +49,13 @@ pub fn uu_app() -> Command {
.arg( .arg(
Arg::new("help") Arg::new("help")
.long("help") .long("help")
.help("Print help information") .help(get_message("true-help-text"))
.action(ArgAction::Help), .action(ArgAction::Help),
) )
.arg( .arg(
Arg::new("version") Arg::new("version")
.long("version") .long("version")
.help("Print version information") .help(get_message("true-version-text"))
.action(ArgAction::Version), .action(ArgAction::Version),
) )
} }