Skip to content

Commit 3b310a8

Browse files
committed
l10n: port printenv for translation + add french
1 parent bcb76ac commit 3b310a8

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/uu/printenv/locales/en-US.ftl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
printenv-about = Display the values of the specified environment VARIABLE(s), or (with no VARIABLE) display name and value pairs for them all.
22
printenv-usage = printenv [OPTION]... [VARIABLE]...
3+
4+
printenv-help-null = end each output line with 0 byte rather than newline

src/uu/printenv/locales/fr-FR.ftl

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

src/uu/printenv/src/printenv.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use clap::{Arg, ArgAction, Command};
77
use std::env;
88
use uucore::{error::UResult, format_usage};
9-
109
use uucore::locale::get_message;
1110

1211
static OPT_NULL: &str = "null";
@@ -62,7 +61,7 @@ pub fn uu_app() -> Command {
6261
Arg::new(OPT_NULL)
6362
.short('0')
6463
.long(OPT_NULL)
65-
.help("end each output line with 0 byte rather than newline")
64+
.help(get_message("printenv-help-null"))
6665
.action(ArgAction::SetTrue),
6766
)
6867
.arg(

0 commit comments

Comments
 (0)