summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-14 13:47:02 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-14 13:47:02 +0000
commit0c8f651988b155d12deb3aea26c2f206648c61e5 (patch)
tree9bebdb61d92b19c9db9b98a15efdf8e8d3cf7fae /urpm.pm
parentfadf35a458884372e139c97282a333f4a0d84f25 (diff)
downloadurpmi-0c8f651988b155d12deb3aea26c2f206648c61e5.tar
urpmi-0c8f651988b155d12deb3aea26c2f206648c61e5.tar.gz
urpmi-0c8f651988b155d12deb3aea26c2f206648c61e5.tar.bz2
urpmi-0c8f651988b155d12deb3aea26c2f206648c61e5.tar.xz
urpmi-0c8f651988b155d12deb3aea26c2f206648c61e5.zip
Factorize the message/prompt/I18N code of urpm* in a separate module
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm16
1 files changed, 2 insertions, 14 deletions
diff --git a/urpm.pm b/urpm.pm
index 35f6a1e7..33ac145f 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -5,27 +5,15 @@ package urpm;
use strict;
use vars qw($VERSION @ISA @EXPORT);
use MDK::Common;
+use urpm::msg;
$VERSION = '4.4';
-@ISA = qw(Exporter URPM);
-@EXPORT = qw(N);
+@ISA = qw(URPM);
use URPM;
use URPM::Resolve;
use POSIX;
-#- I18N.
-eval {
- require Locale::gettext;
- setlocale(LC_ALL, "");
- Locale::gettext::textdomain("urpmi");
-};
-
-sub N {
- my ($format, @params) = @_;
- sprintf(eval { Locale::gettext::gettext($format || '') } || $format, @params);
-}
-
#- tool functions.
sub localtime2changelog { scalar(localtime($_[0])) =~ /(.*) \S+ (\d{4})$/ && "$1 $2" };