Skip to content

Commit b99046d

Browse files
authored
Merge pull request #8097 from sylvestre/l10n-false
l10n: port false to translation + add french
2 parents 69fa206 + 63fca1d commit b99046d

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ false-about = Returns false, an unsuccessful exit status.
33
Immediately returns with the exit status 1. When invoked with one of the recognized options it
44
will try to write the help or version text. Any IO error during this operation is diagnosed, yet
55
the program will also return 1.
6+
7+
false-help-text = Print help information
8+
false-version-text = Print version information

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
false-about = Renvoie false, un code de sortie indiquant un échec.
2+
3+
Retourne immédiatement avec le code de sortie 1. Lorsqu'il est invoqué avec l'une des options reconnues,
4+
il tente d'afficher l'aide ou la version. Toute erreur d'entrée/sortie pendant cette opération est signalée,
5+
mais le programme retourne également 1.
6+
false-help-text = Afficher l'aide
7+
false-version-text = Afficher les informations de version

src/uu/false/src/false.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ pub fn uu_app() -> Command {
5252
.arg(
5353
Arg::new("help")
5454
.long("help")
55-
.help("Print help information")
55+
.help(get_message("false-help-text"))
5656
.action(ArgAction::Help),
5757
)
5858
.arg(
5959
Arg::new("version")
6060
.long("version")
61-
.help("Print version information")
61+
.help(get_message("false-version-text"))
6262
.action(ArgAction::Version),
6363
)
6464
}

0 commit comments

Comments
 (0)