The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

urpm::msg - routines to prompt messages from the urpm* tools

SYNOPSIS

DESCRIPTION

METHODS

translate($s, $o_plural, $o_nb)

Actually translate a string using gettext.

P($s_singular, $s_plural, $nb, @para)

Like N(), translate a string but with different singular/plural strings according to $nb

N($format, @params)

Translate the $format string (a la printf using @params)

N_($string)

Unlike N(), it doesn't actually translate $string but serves to tag a string as translatable for extracting into pod catalog.

The string will actually be translated later using translate().

sys_log(...)

Log through syslog if Sys::Syslog is installed.

bug_log(...)

Writes only to logfile, not to screen

toMb($nb)

Convert a number of bytes into Mb

formatXiB($number [, $o_newbase])

Returns a nicely human size. eg:

  2097152 => "2MB"

The optional parameter enables to provide the unit size (default is one). eg for a 2000 512 sized sectors:

  formatXiB(2000, 512)

Duplicated from common (drakx/perl-install/common.pm)

COPYRIGHT

Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 MandrakeSoft SA

Copyright (C) 2005-2010 Mandriva SA

Copyright (C) 2011-2020 Mageia