| Dpkg::Gettext(3) - phpMan
Dpkg::Gettext(3) libdpkg-perl Dpkg::Gettext(3)
NAME
Dpkg::Gettext - convenience wrapper around Locale::gettext
DESCRIPTION
The Dpkg::Gettext module is a convenience wrapper over the Locale::gettext module, to
guarantee we always have working gettext functions, and to add some commonly used aliases.
FUNCTIONS
my $trans = _g($msgid)
Calls gettext() on the $msgid and returns its translation for the current locale. If
gettext() is not available, simply returns $msgid.
my $trans = P_($msgid, $msgid_plural, $n)
Calls ngettext(), returning the correct translation for the plural form dependent on
$n. If gettext() is not available, returns $msgid if $n is 1 or $msgid_plural
otherwise.
CHANGES
Version 1.00
Mark the module as public.
1.17.27 2016-04-25 Dpkg::Gettext(3)
|