Subject: | ensure availability of locale API, correct typo in documentation |
Import :locale_h and correct a typo in the documentation.
Subject: | perl-gettext.src2.patch |
--- origsrc/gettext-1.05/gettext.pm 2005-06-01 05:11:16.000000000 +0200
+++ src/gettext-1.05/gettext.pm 2015-05-23 23:12:06.813185300 +0200
@@ -32,6 +32,7 @@ to internationalize software.
=cut
use Carp;
+use POSIX qw(:locale_h);
require Exporter;
require DynaLoader;
@@ -235,7 +236,7 @@ sub DESTROY {
gettext(), dgettext(), and dcgettext() attempt to retrieve a string
matching their C<msgid> parameter within the context of the current
locale. dcgettext() takes the message's category and the text domain
-as parameters while dcgettext() defaults to the LC_MESSAGES category
+as parameters while dgettext() defaults to the LC_MESSAGES category
and gettext() defaults to LC_MESSAGES and uses the current text domain.
If the string is not found in the database, then C<msgid> is returned.