From 6209217b87298a88b2d183a8e3c877772f09b99c Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Thu, 21 Jun 2001 16:30:03 +0000 Subject: *** empty log message *** --- urpmi.removemedia | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'urpmi.removemedia') diff --git a/urpmi.removemedia b/urpmi.removemedia index 72346e21..a173f248 100755 --- a/urpmi.removemedia +++ b/urpmi.removemedia @@ -20,26 +20,19 @@ #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_; +#- get I18N translation method. +import urpm _; sub main { my (@toremoves, %options); foreach (@_) { /^--?a/ and $options{all} = 1, next; - /^-/ and die sprintf( -_("usage: urpmi.removemedia [-a] ... + /^-/ and die _("usage: urpmi.removemedia [-a] ... where is a medium name to remove. -a select all media. -\nunknown options '%s'\n"), $_); +\nunknown options '%s'\n", $_); push @toremoves, $_; } @@ -50,7 +43,7 @@ where is a medium name to remove. @toremoves = @entries; @toremoves == 0 and die _("nothing to remove (use urpmi.addmedia to add a media)\n"); } - @toremoves == 0 and die sprintf(_("the entry to remove is missing\n(one of %s)\n"), join(", ", @entries)); + @toremoves == 0 and die _("the entry to remove is missing\n(one of %s)\n", join(", ", @entries)); $urpm->remove_media(@toremoves); $urpm->update_media(noclean => !$options{all}); -- cgit v1.2.1