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:
parent
bcb76aca64
commit
ca720f2d20
3 changed files with 8 additions and 3 deletions
|
@ -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-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-usage = printenv [OPTION]... [VARIABLE]...
|
||||||
|
|
||||||
|
printenv-help-null = end each output line with 0 byte rather than newline
|
||||||
|
|
4
src/uu/printenv/locales/fr-FR.ftl
Normal file
4
src/uu/printenv/locales/fr-FR.ftl
Normal 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
|
|
@ -5,9 +5,8 @@
|
||||||
|
|
||||||
use clap::{Arg, ArgAction, Command};
|
use clap::{Arg, ArgAction, Command};
|
||||||
use std::env;
|
use std::env;
|
||||||
use uucore::{error::UResult, format_usage};
|
|
||||||
|
|
||||||
use uucore::locale::get_message;
|
use uucore::locale::get_message;
|
||||||
|
use uucore::{error::UResult, format_usage};
|
||||||
|
|
||||||
static OPT_NULL: &str = "null";
|
static OPT_NULL: &str = "null";
|
||||||
|
|
||||||
|
@ -62,7 +61,7 @@ pub fn uu_app() -> Command {
|
||||||
Arg::new(OPT_NULL)
|
Arg::new(OPT_NULL)
|
||||||
.short('0')
|
.short('0')
|
||||||
.long(OPT_NULL)
|
.long(OPT_NULL)
|
||||||
.help("end each output line with 0 byte rather than newline")
|
.help(get_message("printenv-help-null"))
|
||||||
.action(ArgAction::SetTrue),
|
.action(ArgAction::SetTrue),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue