diff options
author | Francois Pons <fpons@mandriva.com> | 2001-02-16 13:01:02 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-02-16 13:01:02 +0000 |
commit | a73a3e74e32ec5360b62c68f8a80b55a4b79bfdd (patch) | |
tree | 0865be280c28fac5d5c0c4df70030cd06cba5a00 /urpmi.removemedia | |
parent | ec45c9cfff35dd390422a2b0ea40dc60cf9f2bc0 (diff) | |
download | urpmi-a73a3e74e32ec5360b62c68f8a80b55a4b79bfdd.tar urpmi-a73a3e74e32ec5360b62c68f8a80b55a4b79bfdd.tar.gz urpmi-a73a3e74e32ec5360b62c68f8a80b55a4b79bfdd.tar.bz2 urpmi-a73a3e74e32ec5360b62c68f8a80b55a4b79bfdd.tar.xz urpmi-a73a3e74e32ec5360b62c68f8a80b55a4b79bfdd.zip |
*** empty log message ***
Diffstat (limited to 'urpmi.removemedia')
-rwxr-xr-x | urpmi.removemedia | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/urpmi.removemedia b/urpmi.removemedia index 3f19faca..bfeb1f4b 100755 --- a/urpmi.removemedia +++ b/urpmi.removemedia @@ -20,13 +20,22 @@ #use strict qw(subs vars refs); use urpm; +# for i18n +use POSIX; +use Locale::GetText; + +setlocale (LC_ALL, ""); +Locale::GetText::textdomain ("urpmi"); + +import Locale::GetText I_; +*_ = *I_; sub main { my (@toremoves, %options); foreach (@_) { /^--?a/ and $options{all} = 1, next; - /^-/ and die "unknown options \"$_\"\n"; + /^-/ and die sprintf(_("unknown options \"%s\"\n"), $_); push @toremoves, $_; } @@ -35,9 +44,9 @@ sub main { if ($options{all}) { @toremoves = @entries; - @toremoves == 0 and die "nothing to remove (use urpmi.addmedia to add a media)\n"; + @toremoves == 0 and die _("nothing to remove (use urpmi.addmedia to add a media)\n"); } - @toremoves == 0 and die "missing the entry to remove\n(one of " . join(", ", @entries) . ")\n"; + @toremoves == 0 and die sprintf(_("missing the entry to remove\n(one of %s)\n"), join(", ", @entries)); $urpm->remove_media(@toremoves); $urpm->update_media; |