aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-03-01 17:05:16 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-03-01 17:05:16 +0000
commitd86061509a87c19f2f26d9356c561ecefc792180 (patch)
tree56a4cb5cbf09730456f912c1c435318e8d74f9e9
parent260428cfeba137c058d6aaeb6fec517f226f6b9e (diff)
downloadrpmdrake-d86061509a87c19f2f26d9356c561ecefc792180.tar
rpmdrake-d86061509a87c19f2f26d9356c561ecefc792180.tar.gz
rpmdrake-d86061509a87c19f2f26d9356c561ecefc792180.tar.bz2
rpmdrake-d86061509a87c19f2f26d9356c561ecefc792180.tar.xz
rpmdrake-d86061509a87c19f2f26d9356c561ecefc792180.zip
enable to translate --help message (#13970)
-rwxr-xr-xrpmdrake27
1 files changed, 13 insertions, 14 deletions
diff --git a/rpmdrake b/rpmdrake
index b48fe671..9450feee 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -24,21 +24,20 @@ use MDK::Common 'any';
BEGIN { #- we want to run this code before the Gtk->init of the use-my_gtk
my $basename = sub { local $_ = shift; s|/*\s*$||; s|.*/||; $_ };
- #- TODO translate this
any { /^--?h/ } @ARGV and do {
- printf qq(Usage: %s [OPTION]...
- --changelog-first display changelog before filelist in the description window
- --media=medium1,.. limit to given media
- --merge-all-rpmnew propose to merge all .rpmnew/.rpmsave files found
- --mode=MODE set mode (install (default), remove, update)
- --no-confirmation don't ask first confirmation question in update mode
- --no-media-update don't update media at startup
- --no-verify-rpm don't verify packages signatures
- --parallel=alias,host be in parallel mode, use "alias" group, use "host" machine to show needed deps
- --pkg-nosel=pkg1,.. show only these packages
- --pkg-sel=pkg1,.. preselect these packages
- --root force to run as root
- --search=pkg run search for "pkg"
+ printf join("\n", N("Usage: %s [OPTION]..."),
+N(" --changelog-first display changelog before filelist in the description window"),
+N(" --media=medium1,.. limit to given media"),
+N(" --merge-all-rpmnew propose to merge all .rpmnew/.rpmsave files found"),
+N(" --mode=MODE set mode (install (default), remove, update)"),
+N(" --no-confirmation don't ask first confirmation question in update mode"),
+N(" --no-media-update don't update media at startup"),
+N(" --no-verify-rpm don't verify packages signatures"),
+N(" --parallel=alias,host be in parallel mode, use \"alias\" group, use \"host\" machine to show needed deps"),
+N(" --pkg-nosel=pkg1,.. show only these packages"),
+N(" --pkg-sel=pkg1,.. preselect these packages"),
+N(" --root force to run as root"),
+N(" --search=pkg run search for \"pkg\""),
), $basename->($0);
exit 0;
};