Skip to content

Commit 84b60f4

Browse files
committed
l10n: port true to translation + add french
1 parent a769fc7 commit 84b60f4

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ true-about = Returns true, a successful exit status.
33
Immediately returns with the exit status 0, except when invoked with one of the recognized
44
options. In those cases it will try to write the help or version text. Any IO error during this
55
operation causes the program to return 1 instead.
6+
7+
true-help-text = Print help information
8+
true-version-text = Print version information

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
true-about = Renvoie true, un code de sortie indiquant le succès.
3+
4+
Retourne immédiatement avec le code de sortie 0, sauf si l'une des options reconnues est utilisée.
5+
Dans ce cas, il essaiera d'afficher l'aide ou la version. Une erreur d'entrée/sortie pendant cette
6+
opération entraîne un retour avec le code de sortie 1.
7+
true-help-text = Afficher l'aide
8+
true-version-text = Afficher les informations de version

src/uu/true/src/true.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ pub fn uu_app() -> Command {
4949
.arg(
5050
Arg::new("help")
5151
.long("help")
52-
.help("Print help information")
52+
.help(get_message("true-help-text"))
5353
.action(ArgAction::Help),
5454
)
5555
.arg(
5656
Arg::new("version")
5757
.long("version")
58-
.help("Print version information")
58+
.help(get_message("true-version-text"))
5959
.action(ArgAction::Version),
6060
)
6161
}

0 commit comments

Comments
 (0)