1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

l10n: port printenv for translation + add french

This commit is contained in:
Sylvestre Ledru 2025-06-11 10:10:13 +02:00
parent bcb76aca64
commit ca720f2d20
3 changed files with 8 additions and 3 deletions

View file

@ -1,2 +1,4 @@
printenv-about = Display the values of the specified environment VARIABLE(s), or (with no VARIABLE) display name and value pairs for them all.
printenv-usage = printenv [OPTION]... [VARIABLE]...
printenv-help-null = end each output line with 0 byte rather than newline

View file

@ -0,0 +1,4 @@
printenv-about = Afficher les valeurs des VARIABLE(s) d'environnement spécifiées, ou (sans VARIABLE) afficher les paires nom et valeur pour toutes.
printenv-usage = printenv [OPTION]... [VARIABLE]...
printenv-help-null = terminer chaque ligne de sortie avec un octet 0 plutôt qu'un saut de ligne

View file

@ -5,9 +5,8 @@
use clap::{Arg, ArgAction, Command};
use std::env;
use uucore::{error::UResult, format_usage};
use uucore::locale::get_message;
use uucore::{error::UResult, format_usage};
static OPT_NULL: &str = "null";
@ -62,7 +61,7 @@ pub fn uu_app() -> Command {
Arg::new(OPT_NULL)
.short('0')
.long(OPT_NULL)
.help("end each output line with 0 byte rather than newline")
.help(get_message("printenv-help-null"))
.action(ArgAction::SetTrue),
)
.arg(