1Locale::gettext_pp(3) User Contributed Perl DocumentationLocale::gettext_pp(3)
2
3
4

NAME

6       Locale::gettext_pp - Pure Perl Implementation of Uniforum Message
7       Translation
8

SYNOPSIS

10        use gettext_pp (:locale_h :libintl_h);
11
12        gettext $msgid;
13        dgettext $domainname, $msgid;
14        dcgettext $domainname, $msgid, LC_MESSAGES;
15        ngettext $msgid, $msgid_plural, $count;
16        dngettext $domainname, $msgid, $msgid_plural, $count;
17        dcngettext $domainname, $msgid, $msgid_plural, $count, LC_MESSAGES;
18        pgettext $msgctxt, $msgid;
19        dpgettext $domainname, $msgctxt, $msgid;
20        dcpgettext $domainname, $msgctxt, $msgid, LC_MESSAGES;
21        npgettext $msgctxt, $msgid, $msgid_plural, $count;
22        dnpgettext $domainname, $msgctxt, $msgid, $msgid_plural, $count;
23        dcnpgettext $domainname, $msgctxt, $msgid, $msgid_plural, $count, LC_MESSAGES;
24        textdomain $domainname;
25        bindtextdomain $domainname, $directory;
26        bind_textdomain_codeset $domainname, $encoding;
27        my $category = LC_CTYPE;
28        my $category = LC_NUMERIC;
29        my $category = LC_TIME;
30        my $category = LC_COLLATE;
31        my $category = LC_MONETARY;
32        my $category = LC_MESSAGES;
33        my $category = LC_ALL;
34

DESCRIPTION

36       The module Locale::gettext_pp is the low-level interface to message
37       translation according to the Uniforum approach that is for example used
38       in GNU gettext and Sun's Solaris.
39
40       Normally you should not use this module directly, but the high level
41       interface Locale::TextDomain(3) that provides a much simpler
42       interface.     This description is therefore deliberately kept
43       brief.    Please refer to the GNU gettext documentation available at
44       <http://www.gnu.org/manual/gettext/> for in-depth and background
45       information on the topic.
46

FUNCTIONS

48       The module exports by default nothing.  Every function has to be
49       imported explicitely or via an export tag ("EXPORT TAGS").
50
51       gettext MSGID
52           See "FUNCTIONS" in Locale::Messages.
53
54       dgettext TEXTDOMAIN, MSGID
55           See "FUNCTIONS" in Locale::Messages.
56
57       dcgettext TEXTDOMAIN, MSGID, CATEGORY
58           See "FUNCTIONS" in Locale::Messages.
59
60       ngettext MSGID, MSGID_PLURAL, COUNT
61           See "FUNCTIONS" in Locale::Messages.
62
63       dngettext TEXTDOMAIN, MSGID, MSGID_PLURAL, COUNT
64           See "FUNCTIONS" in Locale::Messages.
65
66       dcngettext TEXTDOMAIN, MSGID, MSGID_PLURAL, COUNT, CATEGORY
67           See "FUNCTIONS" in Locale::Messages.
68
69       pgettext MSGCTXT, MSGID
70           See "FUNCTIONS" in Locale::Messages.
71
72       dpgettext TEXTDOMAIN, MSGCTXT, MSGID
73           See "FUNCTIONS" in Locale::Messages.
74
75       dcpgettext TEXTDOMAIN, MSGCTXT, MSGID, CATEGORY
76           See "FUNCTIONS" in Locale::Messages.
77
78       npgettext MSGCTXT, MSGID, MSGID_PLURAL, COUNT
79           See "FUNCTIONS" in Locale::Messages.
80
81       dnpgettext TEXTDOMAIN, MSGCTXT, MSGID, MSGID_PLURAL, COUNT
82           See "FUNCTIONS" in Locale::Messages.
83
84       dcnpgettext TEXTDOMAIN, MSGCTXT, MSGID, MSGID_PLURAL, COUNT, CATEGORY
85           See "FUNCTIONS" in Locale::Messages.
86
87       textdomain TEXTDOMAIN
88           See "FUNCTIONS" in Locale::Messages.
89
90       bindtextdomain TEXTDOMAIN, DIRECTORY
91           See "FUNCTIONS" in Locale::Messages.
92
93       bind_textdomain_codeset TEXTDOMAIN, ENCODING
94       nl_putenv ENVSPEC
95           See "FUNCTIONS" in Locale::Messages.
96

CONSTANTS

98       You can (maybe) get the same constants from POSIX(3); see there for a
99       detailed description
100
101       LC_CTYPE
102       LC_NUMERIC
103       LC_TIME
104       LC_COLLATE
105       LC_MONETARY
106       LC_MESSAGES
107       LC_ALL
108           See "CONSTANTS" in Locale::Messages for more information.
109

EXPORT TAGS

111       This module does not export anything unless explicitely requested.  You
112       can import groups of functions via two tags:
113
114       use Locale::gettext_pp (':locale_h')
115           Imports the functions that are normally defined in the C include
116           file locale.h:
117
118           gettext()
119           dgettext()
120           dcgettext()
121           ngettext()
122           dngettext()
123           dcngettext()
124           pgettext()
125                   Introduced with libintl-perl 1.17.
126
127           dpgettext()
128                   Introduced with libintl-perl 1.17.
129
130           dcpgettext()
131                   Introduced with libintl-perl 1.17.
132
133           npgettext()
134                   Introduced with libintl-perl 1.17.
135
136           dnpgettext()
137                   Introduced with libintl-perl 1.17.
138
139           dcnpgettext()
140                   Introduced with libintl-perl 1.17.
141
142           textdomain()
143           bindtextdomain()
144           bind_textdomain_codeset()
145       use Locale::gettext_pp (':libintl_h')
146           Imports the locale category constants:
147
148           LC_CTYPE
149           LC_NUMERIC
150           LC_TIME
151           LC_COLLATE
152           LC_MONETARY
153           LC_MESSAGES
154           LC_ALL
155

AUTHOR

157       Copyright (C) 2002-2009, Guido Flohr <guido@imperia.net>, all rights
158       reserved.  See the source code for details.
159
160       This software is contributed to the Perl community by Imperia
161       (<http://www.imperia.net/>).
162

SEE ALSO

164       Locale::TextDomain(3pm), Locale::Messages(3pm), Encode(3pm),
165       perllocale(3pm), POSIX(3pm), perl(1), gettext(1), gettext(3)
166

POD ERRORS

168       Hey! The above document had some coding errors, which are explained
169       below:
170
171       Around line 1030:
172           =cut found outside a pod block.  Skipping to next block.
173
174
175
176perl v5.16.3                      2014-06-10             Locale::gettext_pp(3)
Impressum