.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Locale::gettext_pp 3" .TH Locale::gettext_pp 3 2023-07-25 "perl v5.38.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Locale::gettext_pp \- Pure Perl Implementation of Uniforum Message Translation .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& use Locale::gettext_pp qw(:locale_h :libintl_h); \& \& gettext $msgid; \& dgettext $domainname, $msgid; \& dcgettext $domainname, $msgid, LC_MESSAGES; \& ngettext $msgid, $msgid_plural, $count; \& dngettext $domainname, $msgid, $msgid_plural, $count; \& dcngettext $domainname, $msgid, $msgid_plural, $count, LC_MESSAGES; \& pgettext $msgctxt, $msgid; \& dpgettext $domainname, $msgctxt, $msgid; \& dcpgettext $domainname, $msgctxt, $msgid, LC_MESSAGES; \& npgettext $msgctxt, $msgid, $msgid_plural, $count; \& dnpgettext $domainname, $msgctxt, $msgid, $msgid_plural, $count; \& dcnpgettext $domainname, $msgctxt, $msgid, $msgid_plural, $count, LC_MESSAGES; \& textdomain $domainname; \& bindtextdomain $domainname, $directory; \& bind_textdomain_codeset $domainname, $encoding; \& my $category = LC_CTYPE; \& my $category = LC_NUMERIC; \& my $category = LC_TIME; \& my $category = LC_COLLATE; \& my $category = LC_MONETARY; \& my $category = LC_MESSAGES; \& my $category = LC_ALL; .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" The module \fBLocale::gettext_pp\fR is the low-level interface to message translation according to the Uniforum approach that is for example used in GNU gettext and Sun's Solaris. .PP Normally you should not use this module directly, but the high level interface \fBLocale::TextDomain\fR\|(3) that provides a much simpler interface. This description is therefore deliberately kept brief. Please refer to the GNU gettext documentation available at for in-depth and background information on the topic. .SH FUNCTIONS .IX Header "FUNCTIONS" The module exports by default nothing. Every function has to be imported explicitely or via an export tag ("EXPORT TAGS"). .IP "\fBgettext MSGID\fR" 4 .IX Item "gettext MSGID" See "FUNCTIONS" in Locale::Messages. .IP "\fBdgettext TEXTDOMAIN, MSGID\fR" 4 .IX Item "dgettext TEXTDOMAIN, MSGID" See "FUNCTIONS" in Locale::Messages. .IP "\fBdcgettext TEXTDOMAIN, MSGID, CATEGORY\fR" 4 .IX Item "dcgettext TEXTDOMAIN, MSGID, CATEGORY" See "FUNCTIONS" in Locale::Messages. .IP "\fBngettext MSGID, MSGID_PLURAL, COUNT\fR" 4 .IX Item "ngettext MSGID, MSGID_PLURAL, COUNT" See "FUNCTIONS" in Locale::Messages. .IP "\fBdngettext TEXTDOMAIN, MSGID, MSGID_PLURAL, COUNT\fR" 4 .IX Item "dngettext TEXTDOMAIN, MSGID, MSGID_PLURAL, COUNT" See "FUNCTIONS" in Locale::Messages. .IP "\fBdcngettext TEXTDOMAIN, MSGID, MSGID_PLURAL, COUNT, CATEGORY\fR" 4 .IX Item "dcngettext TEXTDOMAIN, MSGID, MSGID_PLURAL, COUNT, CATEGORY" See "FUNCTIONS" in Locale::Messages. .IP "\fBpgettext MSGCTXT, MSGID\fR" 4 .IX Item "pgettext MSGCTXT, MSGID" See "FUNCTIONS" in Locale::Messages. .IP "\fBdpgettext TEXTDOMAIN, MSGCTXT, MSGID\fR" 4 .IX Item "dpgettext TEXTDOMAIN, MSGCTXT, MSGID" See "FUNCTIONS" in Locale::Messages. .IP "\fBdcpgettext TEXTDOMAIN, MSGCTXT, MSGID, CATEGORY\fR" 4 .IX Item "dcpgettext TEXTDOMAIN, MSGCTXT, MSGID, CATEGORY" See "FUNCTIONS" in Locale::Messages. .IP "\fBnpgettext MSGCTXT, MSGID, MSGID_PLURAL, COUNT\fR" 4 .IX Item "npgettext MSGCTXT, MSGID, MSGID_PLURAL, COUNT" See "FUNCTIONS" in Locale::Messages. .IP "\fBdnpgettext TEXTDOMAIN, MSGCTXT, MSGID, MSGID_PLURAL, COUNT\fR" 4 .IX Item "dnpgettext TEXTDOMAIN, MSGCTXT, MSGID, MSGID_PLURAL, COUNT" See "FUNCTIONS" in Locale::Messages. .IP "\fBdcnpgettext TEXTDOMAIN, MSGCTXT, MSGID, MSGID_PLURAL, COUNT, CATEGORY\fR" 4 .IX Item "dcnpgettext TEXTDOMAIN, MSGCTXT, MSGID, MSGID_PLURAL, COUNT, CATEGORY" See "FUNCTIONS" in Locale::Messages. .IP "\fBtextdomain TEXTDOMAIN\fR" 4 .IX Item "textdomain TEXTDOMAIN" See "FUNCTIONS" in Locale::Messages. .IP "\fBbindtextdomain TEXTDOMAIN, DIRECTORY\fR" 4 .IX Item "bindtextdomain TEXTDOMAIN, DIRECTORY" See "FUNCTIONS" in Locale::Messages. .IP "\fBbind_textdomain_codeset TEXTDOMAIN, ENCODING\fR" 4 .IX Item "bind_textdomain_codeset TEXTDOMAIN, ENCODING" .PD 0 .IP "\fBnl_putenv ENVSPEC\fR" 4 .IX Item "nl_putenv ENVSPEC" .PD See "FUNCTIONS" in Locale::Messages. .IP \fBsetlocale\fR 4 .IX Item "setlocale" See "FUNCTIONS" in Locale::Messages. .SH CONSTANTS .IX Header "CONSTANTS" You can (maybe) get the same constants from \fBPOSIX\fR\|(3); see there for a detailed description .IP \fBLC_CTYPE\fR 4 .IX Item "LC_CTYPE" .PD 0 .IP \fBLC_NUMERIC\fR 4 .IX Item "LC_NUMERIC" .IP \fBLC_TIME\fR 4 .IX Item "LC_TIME" .IP \fBLC_COLLATE\fR 4 .IX Item "LC_COLLATE" .IP \fBLC_MONETARY\fR 4 .IX Item "LC_MONETARY" .IP \fBLC_MESSAGES\fR 4 .IX Item "LC_MESSAGES" .IP \fBLC_ALL\fR 4 .IX Item "LC_ALL" .PD See "CONSTANTS" in Locale::Messages for more information. .SH "EXPORT TAGS" .IX Header "EXPORT TAGS" This module does not export anything unless explicitely requested. You can import groups of functions via two tags: .IP "\fBuse Locale::gettext_pp qw(':locale_h')\fR" 4 .IX Item "use Locale::gettext_pp qw(':locale_h')" Imports the functions that are normally defined in the C include file \fIlocale.h\fR: .RS 4 .IP \fBgettext()\fR 8 .IX Item "gettext()" .PD 0 .IP \fBdgettext()\fR 8 .IX Item "dgettext()" .IP \fBdcgettext()\fR 8 .IX Item "dcgettext()" .IP \fBngettext()\fR 8 .IX Item "ngettext()" .IP \fBdngettext()\fR 8 .IX Item "dngettext()" .IP \fBdcngettext()\fR 8 .IX Item "dcngettext()" .IP \fBpgettext()\fR 8 .IX Item "pgettext()" .PD Introduced with libintl-perl 1.17. .IP \fBdpgettext()\fR 8 .IX Item "dpgettext()" Introduced with libintl-perl 1.17. .IP \fBdcpgettext()\fR 8 .IX Item "dcpgettext()" Introduced with libintl-perl 1.17. .IP \fBnpgettext()\fR 8 .IX Item "npgettext()" Introduced with libintl-perl 1.17. .IP \fBdnpgettext()\fR 8 .IX Item "dnpgettext()" Introduced with libintl-perl 1.17. .IP \fBdcnpgettext()\fR 8 .IX Item "dcnpgettext()" Introduced with libintl-perl 1.17. .IP \fBtextdomain()\fR 8 .IX Item "textdomain()" .PD 0 .IP \fBbindtextdomain()\fR 8 .IX Item "bindtextdomain()" .IP \fBbind_textdomain_codeset()\fR 8 .IX Item "bind_textdomain_codeset()" .RE .RS 4 .RE .IP "\fBuse Locale::gettext_pp (':libintl_h')\fR" 4 .IX Item "use Locale::gettext_pp (':libintl_h')" .PD Imports the locale category constants: .RS 4 .IP \fBLC_CTYPE\fR 8 .IX Item "LC_CTYPE" .PD 0 .IP \fBLC_NUMERIC\fR 8 .IX Item "LC_NUMERIC" .IP \fBLC_TIME\fR 8 .IX Item "LC_TIME" .IP \fBLC_COLLATE\fR 8 .IX Item "LC_COLLATE" .IP \fBLC_MONETARY\fR 8 .IX Item "LC_MONETARY" .IP \fBLC_MESSAGES\fR 8 .IX Item "LC_MESSAGES" .IP \fBLC_ALL\fR 8 .IX Item "LC_ALL" .RE .RS 4 .RE .PD .SH AUTHOR .IX Header "AUTHOR" Copyright (C) 2002\-2017 Guido Flohr (), all rights reserved. See the source code for details!code for details! .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBLocale::TextDomain\fR\|(3pm), \fBLocale::Messages\fR\|(3pm), \fBEncode\fR\|(3pm), \&\fBperllocale\fR\|(3pm), \fBPOSIX\fR\|(3pm), \fBperl\fR\|(1), \fBgettext\fR\|(1), \fBgettext\fR\|(3)