diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-14 13:47:02 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-14 13:47:02 +0000 |
commit | 0c8f651988b155d12deb3aea26c2f206648c61e5 (patch) | |
tree | 9bebdb61d92b19c9db9b98a15efdf8e8d3cf7fae /urpm.pm | |
parent | fadf35a458884372e139c97282a333f4a0d84f25 (diff) | |
download | urpmi-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.pm | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -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" }; |