diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2003-03-05 20:06:46 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2003-03-05 20:06:46 +0000 |
commit | c19e3039a252f50b986a2e4b8e66817395f512ee (patch) | |
tree | d0c75c6e6f846cce50a722014c4b3bff92bcc7a7 /_irpm | |
parent | cbcfd7a1b9bbafeedfd483ae511da8529982147a (diff) | |
download | urpmi-c19e3039a252f50b986a2e4b8e66817395f512ee.tar urpmi-c19e3039a252f50b986a2e4b8e66817395f512ee.tar.gz urpmi-c19e3039a252f50b986a2e4b8e66817395f512ee.tar.bz2 urpmi-c19e3039a252f50b986a2e4b8e66817395f512ee.tar.xz urpmi-c19e3039a252f50b986a2e4b8e66817395f512ee.zip |
changed name of _() function to N()
use of perl_checker to create pot file
Diffstat (limited to '_irpm')
-rwxr-xr-x | _irpm | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -7,7 +7,7 @@ use Locale::gettext; setlocale (LC_ALL, ""); textdomain ("urpmi"); -sub _ { +sub N { my ($format, @params) = @_; sprintf(Locale::gettext::gettext($format), @params); } @@ -20,7 +20,7 @@ $BASE = "$DIR/autoirpm"; $INSTALL_SCRIPT_REP = "$BASE.scripts"; $rpm = shift @ARGV; -print STDERR "autoirpm: ", _("installing %s\n",$rpm); +print STDERR "autoirpm: ", N("installing %s\n",$rpm); `xtest`; $X = ($? == 0); @@ -30,18 +30,18 @@ $SIG{ALRM} = sub { $pid and kill 9, $pid; not_found(); }; alarm $timeout; if (!$automatic) { - $interactive_mesg = _("Automatic installation of packages...\nYou requested installation of package %s\n",$rpm) . _("Is this OK?"); + $interactive_mesg = N("Automatic installation of packages...\nYou requested installation of package %s\n",$rpm) . N("Is this OK?"); if ($X) { - my $ok = _("Ok"); - my $cancel = _("Cancel"); + my $ok = N("Ok"); + my $cancel = N("Cancel"); ($pid = fork) or exec "gmessage", "-default", $ok, "-buttons", "$ok:0,$cancel:2", $interactive_mesg; wait(); $? and not_found(); } else { if (isatty(0)) { - $noexpr = _("Nn"); - $yesexpr = _("Yy"); - print $interactive_mesg, _(" (Y/n) "); + $noexpr = N("Nn"); + $yesexpr = N("Yy"); + print $interactive_mesg, N(" (Y/n) "); <STDIN> =~ /[$yesexpr]/ or not_found(); } else { # Arghhh not in automatic and no way to contact the user... dying @@ -60,7 +60,7 @@ fork or exec $urpmi, "--comment", $ARGV[0], $rpm; wait; not_found(); sub not_found { - print STDERR _("%s: command not found\n",$rpm); + print STDERR N("%s: command not found\n",$rpm); exit 127; } |