Skip to content

Commit 9eaaf9c

Browse files
authored
Merge pull request #8209 from sylvestre/l10n-printenv
l10n: port printenv for translation + add french
2 parents 4f3d7da + ca720f2 commit 9eaaf9c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55

66
use clap::{Arg, ArgAction, Command};
77
use std::env;
8-
use uucore::{error::UResult, format_usage};
9-
108
use uucore::locale::get_message;
9+
use uucore::{error::UResult, format_usage};
1110

1211
static OPT_NULL: &str = "null";
1312

@@ -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)